11.02.26.md (1064B)
1 # 11/02/26 2 3 - JavaScript has goto 4 - Types 5 - Number type, for ints and floats 6 - String, for strings 7 - Boolean, for bools 8 - Undefined, un-assigned value 9 - Null, empty object 10 - NaN is returned for numbers sometimes 11 - `let` is used to create a variable 12 13 - String Methods 14 - `charAt(Number) // indexes a string` 15 - `indexOf(String) // the first instance of the arg` 16 - `substring(Number, Number) // gets the sub string in the range, (inclusive, non-inclusive)` 17 - `toLowerCase() // lower case version of the object` 18 - `toUpperCase() // lower case version of the object` 19 - `length // the length of the string` 20 21 - adding `use strict` to the top of the JS file, this enforces more rules 22 23 - all the same operators as c, except from `===` and `!==`, these operators don't allow for type conversion 24 25 - the `typeof()` opperator, gives you a string of the type of object, 26 excluding `"object"`, which can mean an object or null 27 28 - constants aren't real 29 30