
JAVASCRIPT-STRING,ARRAYS,FUNCTIONS

Quiz
•
Computers
•
University
•
Medium
anispremkoilraj p
Used 3+ times
FREE Resource
75 questions
Show all answers
1.
FILL IN THE BLANK QUESTION
1 min • 1 pt
What does the following code snippet do? function add(x, y) { return x + y; }
console.log(add(5, 3));
2.
FILL IN THE BLANK QUESTION
1 min • 1 pt
NOT a valid way to pass arguments to a function?
3.
FILL IN THE BLANK QUESTION
1 min • 1 pt
What will the following code output? function foo() { var x = 10; if (true) { var x = 20; console.log(x); } console.log(x); } foo();
4.
FILL IN THE BLANK QUESTION
1 min • 1 pt
What is the result of the following code? function sayName(name) { console.log("Hello, " + name); } var greeting = sayName("John"); console.log(greeting);
5.
FILL IN THE BLANK QUESTION
1 min • 1 pt
What will be the output of the following code? let arr = [1, 2, 3]; console.log(arr[3]);
6.
FILL IN THE BLANK QUESTION
1 min • 1 pt
What will be the output of the following code? let arr = [1, 2, 3]; arr.length = 1; console.log(arr[2]);
7.
FILL IN THE BLANK QUESTION
1 min • 1 pt
What will be the output of the following code? let arr = [1, 2, 3]; arr[5] = 6; console.log(arr.length);
Create a free account and access millions of resources
Similar Resources on Wayground
75 questions
SOAL UAS LOGIKA ALGORITMA DAN PEMROGRAMAN

Quiz
•
University
80 questions
Computer grade10

Quiz
•
10th Grade - University
70 questions
ID and Access Management

Quiz
•
10th Grade - University
75 questions
ATW C1

Quiz
•
University
76 questions
CodeIgniter Quiz

Quiz
•
University
70 questions
ÔN TẬP CUỐI KÌ 1 LỚP 10

Quiz
•
University
71 questions
Final Exam Quiz

Quiz
•
University
75 questions
PYTHON CERT REVIEWER

Quiz
•
University
Popular Resources on Wayground
10 questions
Lab Safety Procedures and Guidelines

Interactive video
•
6th - 10th Grade
10 questions
Nouns, nouns, nouns

Quiz
•
3rd Grade
10 questions
9/11 Experience and Reflections

Interactive video
•
10th - 12th Grade
25 questions
Multiplication Facts

Quiz
•
5th Grade
11 questions
All about me

Quiz
•
Professional Development
22 questions
Adding Integers

Quiz
•
6th Grade
15 questions
Subtracting Integers

Quiz
•
7th Grade
9 questions
Tips & Tricks

Lesson
•
6th - 8th Grade
Discover more resources for Computers
21 questions
Spanish-Speaking Countries

Quiz
•
6th Grade - University
20 questions
Levels of Measurements

Quiz
•
11th Grade - University
7 questions
Common and Proper Nouns

Interactive video
•
4th Grade - University
12 questions
Los numeros en español.

Lesson
•
6th Grade - University
7 questions
PC: Unit 1 Quiz Review

Quiz
•
11th Grade - University
7 questions
Supporting the Main Idea –Informational

Interactive video
•
4th Grade - University
12 questions
Hurricane or Tornado

Quiz
•
3rd Grade - University
7 questions
Enzymes (Updated)

Interactive video
•
11th Grade - University