web 2 JS

web 2 JS

20 Qs

quiz-placeholder

Similar activities

Materi Web Server

Materi Web Server

KG - University

20 Qs

Forensics Ch. 6 Fingerprints Vocabulary (15)

Forensics Ch. 6 Fingerprints Vocabulary (15)

9th - 12th Grade

15 Qs

Lesson 1 Summative Assessment

Lesson 1 Summative Assessment

KG - University

16 Qs

SOAL BAB OPEN LOOP DAN CLOSE LOOP

SOAL BAB OPEN LOOP DAN CLOSE LOOP

12th Grade

25 Qs

5th grade Summative

5th grade Summative

KG - University

25 Qs

Test linguaggio C crediti

Test linguaggio C crediti

9th - 12th Grade

20 Qs

web 2 JS

web 2 JS

Assessment

Quiz

others

Hard

Created by

Rajad Shakya

Used 1+ times

FREE Resource

20 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the correct syntax to declare a variable in JavaScript?
int myVar;
var myVar;
let = myVar;
dim myVar;

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

How do you write a comment in JavaScript?
/* comment */
// comment
# comment

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the output of: 2 + '2' in JavaScript?
4
'4'
NaN
22

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which keyword is used to define a constant in JavaScript?
let
var
define
const

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What does NaN stand for?
Not a Number
No assigned Name
Negative and Null
New assigned Name

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of the following comparisons is true?
'5' == 5
'5' === 5
5 = '5'
5 != 5

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

How do you define a function in JavaScript?
fun myFunc()
function myFunc() {}
function = myFunc()
def myFunc()

Create a free account and access millions of resources

Create resources
Host any resource
Get auto-graded reports
or continue with
Microsoft
Apple
Others
By signing up, you agree to our Terms of Service & Privacy Policy
Already have an account?