Aug 22, 2024
<script>
tags to write Javascript.console.log("Hello World")
).//
for inline comments./* comment */
format.var
, let
, const
.var
has function scope, let
has block scope, const
cannot be reassigned.=
to assign a value to a variable, e.g., var a = 7;
+
, Subtraction -
, Multiplication *
, Division /
, Increment ++
, Decrement --
.%
finds the remainder of a division.var myArray = [1, 2, 3];
push()
, pop()
, shift()
, unshift()
.function
keyword followed by parameters.return
to send a value back from a function.=>
syntax.{}
to define key-value pairs.object.property
) or bracket notation (e.g., object['property']
).delete
keyword.``
.import
and export
to share code across files.