<aside> 💡 Reviewing Javascript
</aside>
Data is printed, or logged, to the console with console.log
console.log("message")
Comments:
//comment
/* comment in between */
7 fundamental data types in JavaScript:
'Sample String"
23.8879
, 18
.
after the name of the object: 'Helo'.length
'hello'.toUpperCase()
Math
are collections of methods and properties that JavaScript provides VVThe built-in arithmetic operators include +
-
*
/
%
var
keyword is used in pre-ES6 version of JavaScriptlet
is the preferred way to declare a variable when it can be reassigned
const
is used for variables that should not and therefore cannot be reassignedundefined
+
operator can be used to concatenate strings, including string variables held in variables${}
to interpolate values into a string.typeof
keyword returns the data type (as a string) of a value.