JavaScript
JavaScript is a versatile programming language primarily used to create interactive and dynamic content on websites. It runs directly in the browser, enabling real-time updates, animations, form validations, and more. Beyond front-end development, JavaScript is also widely used on the server side through platforms like Node.js. Its flexibility and massive ecosystem make it a cornerstone of modern web development.
Take this assessment to check where do you stand in the JavaScript.
Click the Rewards tab for eligibility requirements.
Read the FAQs tab carefully for Instructions before beginning the assessment.
NYXPoints are used to generate the Leaderboard (coming soon). They are awarded for achieving a certain score.
- 200 nyxpoints for a passing score of 80% or more
- 300 nyxpoints for a perfect score of 100%
- Didn’t pass? You still get 30 nyxpoints for attempting the assesment
IMPORTANT instructions for taking the Assessment
- The timer starts when you click Start Assessment
- DO NOT refresh/reload the page or use the back button to navigate away from the page.
- Navigating away from the assessment page DOES NOT stop/pause the timer and the will restart the assessment when you come back to it. The answers are NOT saved.
General
- There are NO pre-requisites to take this assessment. Take this assessment even if you are completely new to Linux.
- The assessment is completely FREE.
- Preferably take it in a closed book mode.
- DO NOT copy/paste, share or upload questions elsewhere.
Eligible Rewards

300 NyxCoins*
* NyxCoins vary on score
Assessment Summary
0 of 30 Questions completed
Questions:
Information
You have already completed the assessment before. Hence you can not start it again.
Assessment is loading…
You must sign in or sign up to start the assessment.
You must first complete the following:
Results
Results
0 of 30 Questions answered correctly
Your time:
Time has elapsed
You have reached 0 of 0 point(s), (0)
Earned Point(s): 0 of 0, (0)
0 Essay(s) Pending (Possible Point(s): 0)
Average score |
|
Your score |
|
Categories
- Not categorized 0%
- 1
- 2
- 3
- 4
- 5
- 6
- 7
- 8
- 9
- 10
- 11
- 12
- 13
- 14
- 15
- 16
- 17
- 18
- 19
- 20
- 21
- 22
- 23
- 24
- 25
- 26
- 27
- 28
- 29
- 30
- Current
- Review
- Answered
- Correct
- Incorrect
-
Question 1 of 30
1. Question
What will be the output of the following code?
console.log(1 + "2" + "2");
console.log(1 + +"2" + "2");
console.log(1 + -"1" + "2");
console.log(+"1" + "1" + "2");CorrectIncorrect -
Question 2 of 30
2. Question
What’s the value of :
console.log(typeof(undefined))?
CorrectIncorrect -
Question 3 of 30
3. Question
What will be the output of the following code?
let a = 3;
let b = new Number(3);
let c = 3;
console.log(a == b);
console.log(a === b);
console.log(b === c);CorrectIncorrect -
Question 4 of 30
4. Question
What will the following code return?
console.log(typeof typeof 1);
CorrectIncorrect -
Question 5 of 30
5. Question
What will be logged to the console?
function() {
var a = b = 5;
})();
console.log(b);
console.log(typeof a);CorrectIncorrect -
Question 6 of 30
6. Question
What is the output of the following code?
let y = 1;
if (function f() {}) {
y += typeof f;
}
console.log(y);CorrectIncorrect -
Question 7 of 30
7. Question
What will be the output of the following code?
console.log(0.1 + 0.2 === 0.3);
CorrectIncorrect -
Question 8 of 30
8. Question
What will the following code output?
console.log(1 < 2 < 3);
console.log(3 > 2 > 1);CorrectIncorrect -
Question 9 of 30
9. Question
What will be the output?
function sayHi() {
console.log(name);
console.log(age);
var name = "Lydia";
let age = 21;
}
sayHi();CorrectIncorrect -
Question 10 of 30
10. Question
What’s the output?
for (var i = 0; i < 3; i++) {
setTimeout(() => console.log(i), 1);
}CorrectIncorrect -
Question 11 of 30
11. Question
What will be the output?
const obj = { a: "one", b: "two", a: "three" };
console.log(obj);CorrectIncorrect -
Question 12 of 30
12. Question
What’s the output?
const a = {};
const b = { key: “b” };
const c = { key: “c” };
a[b] = 123;
a[c] = 456;
console.log(a[b]);
CorrectIncorrect -
Question 13 of 30
13. Question
What will the following code output?
let a = 3;
let b = new Number(3);
console.log(a == b);
console.log(a === b);
console.log(typeof a);
console.log(typeof b);CorrectIncorrect -
Question 14 of 30
14. Question
What does the following code print?
console.log(("b" + "a" + + "a" + "a").toLowerCase());
CorrectIncorrect -
Question 15 of 30
15. Question
What will be logged?
let person = { name: "Lydia" };
const members = [person];
person = null;
console.log(members);CorrectIncorrect -
Question 16 of 30
16. Question
What will be logged?
function checkAge(data) {
if (data === { age: 18 }) {
console.log("You are an adult!");
} else if (data == { age: 18 }) {
console.log("You are still an adult.");
} else {
console.log("Hmm.. You don't have an age I guess");
}
}
checkAge({ age: 18 });CorrectIncorrect -
Question 17 of 30
17. Question
What’s the output?
function sum(a, b) {
return a + b;
}
var x
x=sum(1, "2");
console.log(x)CorrectIncorrect -
Question 18 of 30
18. Question
What will be the output?
let number = 0;
console.log(number++);
console.log(++number);
console.log(number);CorrectIncorrect -
Question 19 of 30
19. Question
What’s the value of the output?
const arr = [1, 2, 3];
arr[10] = 10;
console.log(arr.length);CorrectIncorrect -
Question 20 of 30
20. Question
What will be the output?
const foo = () => console.log("First");
const bar = () => setTimeout(() => console.log("Second"));
const baz = () => console.log("Third");
bar();
foo();
baz();CorrectIncorrect -
Question 21 of 30
21. Question
What will be the output?
const person = {
name: "Lydia",
age: 21
};
for (const item in person) {
console.log(item);
}CorrectIncorrect -
Question 22 of 30
22. Question
What’s the output?
console.log(String("11") === 11);
CorrectIncorrect -
Question 23 of 30
23. Question
What will be the output?
const numbers = [1, 2, 3];
numbers[9] = 11;
console.log(numbers);CorrectIncorrect -
Question 24 of 30
24. Question
What’s the output?
function sum(a, b) {
return a + b;
}
const answer = sum`Hello``World`;
console.log(answer);CorrectIncorrect -
Question 25 of 30
25. Question
Consider the following code. What will be the output?
let array = [1, 2, 3, 4, 5];
let newArray = array.slice(1, 3);
console.log(newArray);CorrectIncorrect -
Question 26 of 30
26. Question
What’s the output?
let x = 10;
let y = "10";
console.log(x == y);
console.log(x === y);CorrectIncorrect -
Question 27 of 30
27. Question
What will the following code output?
var x = 21;
var girl = function() {
console.log(x);
var x = 20;
};
girl();CorrectIncorrect -
Question 28 of 30
28. Question
What’s the value of `result`?
const result = eval('20 / 5 + 3 * 4');
console.log(result)CorrectIncorrect -
Question 29 of 30
29. Question
What’s the output?
var name = 'John';
var obj = {
name: 'Colin',
getName: function() {
return this.name;
}
};
var anotherObj = { name: "Charlie" };
var boundFunction = obj.getName.bind(anotherObj);
console.log(obj.getName());
console.log(boundFunction());CorrectIncorrect -
Question 30 of 30
30. Question
What will the following code output?
console.log(typeof NaN);
console.log(NaN === NaN);CorrectIncorrect