
JavaScript Skills Assessment
Authored by Vishnu M
English
12th Grade
Used 2+ times

AI Actions
Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...
Content View
Student View
10 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
What is the correct way to declare a variable in JavaScript?
int variableName;
declare variableName;
variableName = 5;
let variableName; or const variableName; or var variableName;
2.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
Which of the following is a primitive data type in JavaScript?
number
boolean
object
string
3.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
What will the following code output: console.log(5 > 3 && 2 < 4);?
null
true
false
undefined
4.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
How do you define a function in JavaScript?
myFunction(param1, param2) { // function body }
function:myFunction(param1, param2) { // function body }
define myFunction(param1, param2) => { // function body }
function myFunction(param1, param2) { // function body }
5.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
What is the scope of a variable declared with 'let' inside a block?
The scope of a variable declared with 'let' is global.
The scope of a variable declared with 'let' is limited to the entire script.
The scope of a variable declared with 'let' inside a block is limited to that block.
The scope of a variable declared with 'let' is limited to the entire function.
6.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
How can you access the second element of an array named 'fruits'?
fruits[1]
fruits(1)
fruits[2]
fruits.get(1)
7.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
What is the output of the following code: var obj = {name: 'John', age: 30}; console.log(obj['name']);?
John
Jane
30
Doe
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
10 questions
MY BEST FRIEND IS... (INGLES NIVEL 1/U2.1)
Quiz
•
9th - 12th Grade
10 questions
Either-Neither
Quiz
•
6th - 12th Grade
10 questions
Simple Present Tense
Quiz
•
10th - 12th Grade
10 questions
Test If clause + imperative / suggestion
Quiz
•
12th Grade
13 questions
PASSIVE VOICE
Quiz
•
11th - 12th Grade
10 questions
PAST SIMPLE AND PAST CONTINUOUS
Quiz
•
5th - 12th Grade
15 questions
OW1_Review 1
Quiz
•
1st Grade - University
15 questions
Diagnostic Test (Cognitive) Narrative
Quiz
•
9th - 12th Grade
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
Discover more resources for English
20 questions
Parts of Speech
Quiz
•
12th Grade
12 questions
IREAD Week 4 - Review
Quiz
•
3rd Grade - University
23 questions
Subject Verb Agreement
Quiz
•
9th Grade - University
8 questions
Harrison Bergeron Intro
Quiz
•
9th - 12th Grade
20 questions
Grammar
Quiz
•
9th - 12th Grade
20 questions
Text Structures
Quiz
•
9th - 12th Grade
20 questions
Poetry Terms
Quiz
•
9th - 12th Grade
20 questions
Figurative Language
Quiz
•
9th - 12th Grade