14
/42
Loops, conditionals
const
N
=
7
;
let
k
=
0
;
for
(
k
=
0
;
k
<
N
;
k
++
)
{
if
(
k
%
2
===
0
)
{
console
.
log
(
k
);
}
}
-
let
: define a variable (can be re-assigned)
-
const
: define a non re-assignable variable
Avoid
var
: outdated JavaScript, bad scoping