web 2 JS

web 2 JS

20 Qs

quiz-placeholder

Similar activities

yuuphp

yuuphp

12th Grade

25 Qs

Re.act OS

Re.act OS

KG

23 Qs

Katapult 2 text 6 "Kul med fest"

Katapult 2 text 6 "Kul med fest"

8th Grade

17 Qs

PROGRAMACIÒN

PROGRAMACIÒN

3rd Grade

21 Qs

Algoritmi e fondamenti del linguaggio C++

Algoritmi e fondamenti del linguaggio C++

10th Grade

21 Qs

08.01.2024

08.01.2024

KG - University

19 Qs

Lesson 4-7 Assessment (scrib, script)

Lesson 4-7 Assessment (scrib, script)

5th Grade

16 Qs

NARRATIVE TEXT

NARRATIVE TEXT

KG - University

15 Qs

web 2 JS

web 2 JS

Assessment

Quiz

others

Hard

Created by

Rajad Shakya

Used 3+ 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?