Knowledge check: Arrays, Objects and Functions 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 item ?
var item = [];
Boolean
Function
Array
What is the value of result for the following code?
var result = "Hello".indexOf('l');
1
2
3
4
What is the length of the clothes array after this code runs?
var clothes = [];
clothes.push('gray t-shirt');
clothes.push('green scarf');
clothes.pop();
clothes.push('slippers');
clothes.pop();
clothes.push('boots');
clothes.push('old jeans');
1
2
3
4
What value is printed out by the following code?
var food = [];
food.push('Chocolate');
food.push('Ice cream');
food.push('Donut');
console.log(food[1])
Chocolate
Ice cream
Donut
How many properties does the dog object have after the following code is run?
var dog = {
color: "brown",
height: 30,
length: 60
};
dog["type"] = "corgi";
1
2
3
4
In the following function, the variables a and b are known as _______________.
function add(a, b) {
return a + b;
}
Parameters
Return Values
Which of the following are functions of the Math object?
random()
round()
sqrt()
trim()