JavaScript15 [TIL] 20201127 JavaScript Decision making Decision Making with Code Boolean Logic : Having different outcomes depending on different criteria. Comparison Operators Has true or false output. > : greater than = : greater than or equal to 2020. 11. 27. [TIL] 20201126 JavaScript Strings and More String Represents text Must be wrapped in quotes, either double or single. Warning : 23 ≠ '23' let username = "Jiwan"; let username = 'Jiwan'; let username = 'Jiwan"; //error String Index Strings are indexed. Each character has a corresponding index (positional number) Index starts at 0. String Length Length of index. (Index of last letter) + 1 = Length String Concatenation Put multiple strings .. 2020. 11. 27. [TIL] 20201125 JavaScript Basics Primitive Types Number String Boolean Null Undefined Symbol BigInt JavaScript Numbers JavaScript has ONE number type Math operations add : + subtraction : - multiplication : * division : / modulo(remainder operator) : % exponentiation : ** NaN "Not a Number" NaN is a numeric value that represents something that is not a number. ex) 0/0, 1+NaN Variables Labels for values Basic Syntax let x = valu.. 2020. 11. 25. 이전 1 2 다음