Which operator is known as the equality operator, which checks whether its two operators are "equal"?
Anonymous Quiz
0%
=
67%
==
33%
===
0%
&&
Which operator is known as the strict equality operator, which checks whether its two operators are identical or not?
Anonymous Quiz
0%
=
33%
==
67%
===
0%
&
let omega = (elm) => "elm" + 5;
console.log( omega(5) );
console.log( omega(5) );
Anonymous Quiz
11%
55
22%
10
67%
elm5
0%
Error
function message() {
var name = "We are awesome";
alert(name); } Type of the "name" variable is ______.
var name = "We are awesome";
alert(name); } Type of the "name" variable is ______.
Anonymous Quiz
56%
Local
11%
Global
11%
Semi-global
22%
None of the other options
Did you know we can declare variable without var keywords?
Check this for more information!
🔔 https://stackoverflow.com/q/6888570/14070533
Check this for more information!
🔔 https://stackoverflow.com/q/6888570/14070533
Stack Overflow
Declaring variables without var keyword
At w3schools there is written:
If you declare a variable, without using "var", the variable always becomes GLOBAL.
Is it useful to declare global variable inside the function? I can imagine to
If you declare a variable, without using "var", the variable always becomes GLOBAL.
Is it useful to declare global variable inside the function? I can imagine to
const arr = [];
arr.unshift("a");
arr.unshift("b"); console.log(arr);
arr.unshift("a");
arr.unshift("b"); console.log(arr);
Anonymous Quiz
17%
a, b
61%
b, a
22%
[ ]
const arr = ["a", ["b", ["c", {d: "e"}]]];
const output = arr.flat(Infinity).find(elm => elm.d !== undefined);
console.log(output);
const output = arr.flat(Infinity).find(elm => elm.d !== undefined);
console.log(output);
Anonymous Quiz
29%
{ d: "e" }
41%
["a", ["b", ["c", {d: "e"}]]]
12%
e
18%
a, b, c, d, e