
JAVASCRIPT-STRING,ARRAYS,FUNCTIONS
Quiz
•
Computers
•
University
•
Practice Problem
•
Medium
anispremkoilraj p
Used 3+ times
FREE Resource
Enhance your content in a minute
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);
Access all questions and much more by creating a free account
Create resources
Host any resource
Get auto-graded reports

Continue with Google

Continue with Email

Continue with Classlink

Continue with Clever
or continue with

Microsoft
%20(1).png)
Apple
Others
Already have an account?
Similar Resources on Wayground
80 questions
CompTIA A+ Core 2 Practice Test A
Quiz
•
University
70 questions
GEL 211 - Quiz 1
Quiz
•
University
70 questions
UAS SO
Quiz
•
University
76 questions
Quiz di Sicurezza Informatica
Quiz
•
9th Grade - University
70 questions
Kuis 1 Komputer Grafis
Quiz
•
University
71 questions
Multimedia Systems Quiz
Quiz
•
University
70 questions
Compsys
Quiz
•
University
75 questions
REM UAS Sistem Komputasi dan Pemrograman
Quiz
•
University
Popular Resources on Wayground
15 questions
Fractions on a Number Line
Quiz
•
3rd Grade
20 questions
Equivalent Fractions
Quiz
•
3rd Grade
25 questions
Multiplication Facts
Quiz
•
5th Grade
22 questions
fractions
Quiz
•
3rd Grade
20 questions
Main Idea and Details
Quiz
•
5th Grade
20 questions
Context Clues
Quiz
•
6th Grade
15 questions
Equivalent Fractions
Quiz
•
4th Grade
20 questions
Figurative Language Review
Quiz
•
6th Grade
