Search Header Logo

Frontend Quiz 5 summer internship

Authored by Gnaneshwar Reddy

Other

University

Used 3+ times

Frontend Quiz 5 summer internship
AI

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

30 sec • 1 pt

Which keyword is used to declare a variable in JavaScript?

A. int

B. var

C. float

D. char

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which keyword is used to declare a constant variable in JavaScript?

A. const

B. let

C. var

D. final

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which datatype is not primitive in JavaScript?

A. String

B. Boolean

C. Object

D. Number

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which operator is used to assign a value to a variable?

A. ==

B. =

C. ===

D. !=

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which operator is used to concatenate two strings in JavaScript?

A. +

B. &

C. &&

D. ||

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

How do you call a function named myFunction in JavaScript?

A. myFunction();

B. call myFunction();

C. call function myFunction();

D. myFunction;

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of the following is the correct syntax for a function expression in JavaScript?

A. var myFunction = function() {};

B. function myFunction = function() {};

C. myFunction() => {};

D. var myFunction() = function {};

Access all questions and much more by creating a free account

Create resources

Host any resource

Get auto-graded reports

Google

Continue with Google

Email

Continue with Email

Classlink

Continue with Classlink

Clever

Continue with Clever

or continue with

Microsoft

Microsoft

Apple

Apple

Others

Others

Already have an account?