JavaScript Basics

JavaScript Basics

Assessment

Flashcard

Computers

5th Grade

Hard

Created by

Hala Ahmed

FREE Resource

Student preview

quiz-placeholder

10 questions

Show all answers

1.

FLASHCARD QUESTION

Front

Where are JavaScript statements written?

Back

JavaScript statements are written within HTML tags.

2.

FLASHCARD QUESTION

Front

Is JavaScript case sensitive?

Back

Yes, JavaScript is case sensitive.

3.

FLASHCARD QUESTION

Front

What does the alert() statement do?

Back

The alert() statement displays a message inside a dialogue box.

4.

FLASHCARD QUESTION

Front

What is the purpose of the document.write() statement?

Back

The document.write() statement is used to display texts within the webpage content.

5.

FLASHCARD QUESTION

Front

When are JavaScript statements executed automatically?

Back

JavaScript statements are executed automatically when the webpage is opened.

6.

FLASHCARD QUESTION

Front

What is a function in JavaScript?

Back

A function is a group of JavaScript statements that will be executed when called.

7.

FLASHCARD QUESTION

Front

How do you create a function in JavaScript?

Back

Write the word 'function' followed by a suitable name and the code between curly brackets.

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?