easy== vs equals
What is the result?
let arr = ["a", "b", "c"];
arr.reverse();
console.log(arr);Read the full question →Closures, scope, equality: the bread and butter every JS dev needs.
Difficulty mix: 6 easy, 3 medium and 1 hard. The questions are drawn from the JavaScript library at the moment you start, so sitting the test twice does not give you the same paper.
42 JavaScript topics are in scope. These are the real topic labels on the questions.
Six real JavaScript questions from the same pool, snippet included. The answer options and explanations are not shown here. Those come after you attempt them.
let arr = ["a", "b", "c"];
arr.reverse();
console.log(arr);Read the full question →let arr = ["a", "b"];
arr.push("c");
console.log(arr);Read the full question →typeof null === "object"Read the full question →let arr = [[1, 2], [3, 4, 5]];
console.log(arr.flat());Read the full question →const obj = {
name: "Hello",
sayHello: function() {
console.log(this.name);
}
};
obj.sayHello();Read the full question →let str = "Hello World";
console.log(str.toUpperCase());Read the full question →Prefer to pick your own questions? Browse all JavaScript questions. See the other 10 tests.