20 Apr 2019
In most languges, conditional control statements often require expressions that
evaluate to boolean values: one of true
or false
. In JavaScript however,
non-boolean values can also be used in conditional control statements. Values
that are treated as false
but are not actually false
themselves are said
to be falsy
. The same goes with truthy
values with respect to true
.
...
Read more
07 Apr 2019
const
, let
, and var
are 3 different ways to declare a variable in
JavaScript, each with different consequences in terms of scope and assignment.
...
Read more
07 Apr 2019
What is the ‘arguments’ object?
Simply put, the arguments
object contains all arguments or parameters
passed into the current function. It’s worth emphasizing that arguments
is only defined and accessible from within the scope of a function. For example:
...
Read more
06 Apr 2019
Short circuiting in JavaScript (and other languages) is when only part of a
boolean expression is evaluated in order to get the result of the entire
expression.
...
Read more