Introduction to JavaScript Basics

Introduction to JavaScript Basics

10th Grade

10 Qs

quiz-placeholder

Similar activities

Biological molecules quiz_O'level

Biological molecules quiz_O'level

9th - 12th Grade

10 Qs

Micro-organismes

Micro-organismes

1st Grade - University

10 Qs

Quiz: Colons, Semicolons, and Dashes

Quiz: Colons, Semicolons, and Dashes

9th - 12th Grade

10 Qs

✨MIND SPARKS✨ (week 1)

✨MIND SPARKS✨ (week 1)

9th - 12th Grade

15 Qs

AI and Computer Science Challenge

AI and Computer Science Challenge

10th Grade

15 Qs

Understanding Applications

Understanding Applications

10th Grade

15 Qs

QUELQUES INFOS SUR L’ÎLE DE SAMOS

QUELQUES INFOS SUR L’ÎLE DE SAMOS

9th - 12th Grade

6 Qs

Cell Biology I

Cell Biology I

10th Grade

15 Qs

Introduction to JavaScript Basics

Introduction to JavaScript Basics

Assessment

Quiz

Others

10th Grade

Hard

Created by

Anhar Ibrahim

FREE Resource

10 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What does JavaScript primarily run in?

Web browsers

Desktop applications

Mobile apps

Server-side scripts

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What symbol is used to denote a variable in JavaScript?

Variable names in JavaScript are denoted by letters, underscores, or dollar signs.

Asterisks and ampersands

Numbers and special characters

Only letters and numbers

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of the following is a correct way to declare a function in JavaScript?

function myFunction[] { }

myFunction() = function() { }

function:myFunction() { }

function myFunction() { }

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the output of 'console.log(typeof 42)'?

number

string

boolean

undefined

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

How do you create an array in JavaScript?

let arr = () => {};

let arr = [];

let arr = {};

let arr = new Array();

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What keyword is used to define a constant variable?

final

const

static

immutable

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which operator is used for equality comparison in JavaScript?

=

== and ===

<=>

!==

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?