
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
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
By signing up, you agree to our Terms of Service & Privacy Policy
Already have an account?
Similar Resources on Wayground
75 questions
電腦繪圖色彩學
Quiz
•
University
80 questions
Quiz Time - Learn eQuick
Quiz
•
University
71 questions
Ethernet Concepts
Quiz
•
University
76 questions
CFall4-7
Quiz
•
University
75 questions
Examen DFD y Python
Quiz
•
University
74 questions
Examen Teórico Final Base de datos II
Quiz
•
University
74 questions
REV 4- Antenna Systems
Quiz
•
University
76 questions
Electromagentic , Mid-term 2 , questions
Quiz
•
University
Popular Resources on Wayground
20 questions
Halloween Trivia
Quiz
•
6th - 8th Grade
25 questions
Multiplication Facts
Quiz
•
5th Grade
15 questions
Order of Operations
Quiz
•
5th Grade
20 questions
Halloween
Quiz
•
5th Grade
16 questions
Halloween
Quiz
•
3rd Grade
12 questions
It's The Great Pumpkin Charlie Brown
Quiz
•
1st - 5th Grade
20 questions
Possessive Nouns
Quiz
•
5th Grade
10 questions
Halloween Traditions and Origins
Interactive video
•
5th - 10th Grade
Discover more resources for Computers
10 questions
Halloween Movies Trivia
Quiz
•
5th Grade - University
12 questions
Halloween
Quiz
•
3rd Grade - University
5 questions
Using Context Clues
Interactive video
•
4th Grade - University
20 questions
Definite and Indefinite Articles in Spanish (Avancemos)
Quiz
•
8th Grade - University
7 questions
Force and Motion
Interactive video
•
4th Grade - University
14 questions
Eat Healthy,Be Healty
Quiz
•
4th Grade - University
7 questions
History of Halloween: Pagan or Christian?
Interactive video
•
11th Grade - University
7 questions
Renewable and Nonrenewable Resources
Interactive video
•
4th Grade - University
