Sep 19, 2024
<script>
tags in HTML files to include Javascript.console.log()
to output text to the console.// comment
/* comment */
var
, let
, or const
.var
is function-scoped; let
is block-scoped; const
is read-only.=
to assign values to variables.const
variables.+
-
*
/
++
(e.g., myVar++
)--
(e.g., myVar--
)\
for special characters.+
or +=
to join strings.[]
to define arrays.array[index]
..push()
, .pop()
, .shift()
, and .unshift()
to manipulate arrays.function
keyword.return
statement to return a value.if/else
statements.{}
to create an object.obj.prop
or bracket notation obj['prop']
.delete obj.prop
.import
and export
to manage dependencies between files.