Module quiz: The Building Blocks of a Program in Javascript

A passionate full-stack developer from @ePlus.DEV
Search for a command to run...

A passionate full-stack developer from @ePlus.DEV
No comments yet. Be the first to comment.
Daily Tech Brief — 06/08/2026 Một bản tin giúp Developer cập nhật nhanh AI, Cloud, Open Source và những công nghệ đáng chú ý trong ngày. 📌 Executive Summary Claude Code 2.1.223 vá nhiều đường обх

Overview In a challenge lab you’re given a scenario and a set of tasks. Instead of following step-by-step instructions, you will use the skills learned from the labs in the course to figure out how to

🏕️ Arcade Base Camp August 2026 Welcome to Arcade Base Camp August 2026, where you’ll develop key Google Cloud skills and earn an exclusive credential that will open doors to the cloud for you. No pr

Một bản tin giúp Developer cập nhật nhanh AI, Cloud, Open Source và những công nghệ đáng chú ý trong ngày. 📌 Executive Summary Google Cloud giới thiệu hai Database Operations Agents hỗ trợ onboard

Một bản tin giúp Developer cập nhật nhanh AI, Cloud, Open Source và những công nghệ đáng chú ý trong ngày. 📌 Executive Summary SK hynix và Sandisk công bố đặc tả mở đầu tiên cho High Bandwidth Fla

What data type is the variable x ?
var x = {};
Function
Array
Object
What will be the output of running the following code?
try {
console.log('hello)
} catch(e) {
console.log('caught')
}
Uncaught SyntaxError: Invalid or unexpected token.
Caught
What value is printed when the following code runs?
var burger = ["bun", "beef", "lettuce", "tomato sauce", "onion", "bun"];
console.log(burger[2]);
bun
beef
lettuce
tomato sauce
onion
In the following code, how many methods does the bicycle object have?
var bicycle = {
wheels: 2,
start: function() {
},
stop: function() {
}
};
1
2
3
When the following code runs, what will print out?
try {
throw new Error();
console.log('Hello');
} catch(err) {
console.log('Goodbye');
}
Hello
Goodbye
If you mis-type some code in your JavaScript, what kind of error will that result in?
RangeError
SyntaxErrror
TypeError
Will the following code execute without an error?
function add(a, b) {
console.log(a + b)
}
add(3, "4");
Yes
No
What will be printed when the following code runs?
var result;
console.log(result);
undefined
null
0
What will be the output of the following code?
var str = "Hello";
str.match("jello");
null
undefined
empty string
What will be the output of the following code?
try {
Number(5).toPrecision(300)
} catch(e) {
console.log("There was an error")
}
RangeError
5
e
"There was an error"