Written by students who passed Immediately available after payment Read online or as PDF Wrong document? Swap it for free 4.6 TrustPilot
logo-home
Exam (elaborations)

JAVASCRIPT EXAM STUDY QUESTIONS AND ANSWERS

Rating
-
Sold
-
Pages
4
Grade
A+
Uploaded on
01-11-2025
Written in
2025/2026

JAVASCRIPT EXAM STUDY QUESTIONS AND ANSWERS

Institution
Javascript
Course
Javascript

Content preview

JAVASCRIPT EXAM STUDY
QUESTIONS AND ANSWERS
how do you insert Javascript into a web page? - ANSWER-with the script tag:<script
type="text/javascript">document.write("Hello World!");</script>

Where do you put javascripts? - ANSWER-in the head or body sections.

When do javascripts execute? - ANSWER-immediately. as the page loads into the browser.

What if you don't want the script to execute immediately upon loading a page? - ANSWER-then
put it inside a function.

where do you place functions and why? - ANSWER-in the head section, this way they are all in
one place, and they do not interfere with page content.

when should scripts be placed in the body? - ANSWER-when you want your script to be placed
inside a function, or if your script should write page conten.

how many scripts can you have in a document? - ANSWER-an unlimited number.

when should you use an external javascript? - ANSWER-when you want to run the same
JavaScript on several pages, without having to write the same script on every page.

how should an external javascript be referenced? - ANSWER-<script type="text/javascript"
src="xxx.js"></script>. name the file with a .js extension.

can the external script contain the <script></script> tags? - ANSWER-No.

where do you place the reference for the external javascript in the html page? - ANSWER-
exactly where you would if it was not external.

what is javascript? - ANSWER-a sequence of statements to be executed by the browser

is javascript case sensitive? - ANSWER-yes

what is a javascript statement? - ANSWER-A JavaScript statement is a command to a browser.
The purpose of the command is to tell the browser what to do.

is using a semi colon at the end of a statement mandatory> - ANSWER-No, but its good practice
and it allows you to write multiple statements on a line.

what sequence are javascript statements executed in? - ANSWER-the order they are written.

what is a javascript block? - ANSWER-a group of statements grouped by curly brackets

Written for

Institution
Javascript
Course
Javascript

Document information

Uploaded on
November 1, 2025
Number of pages
4
Written in
2025/2026
Type
Exam (elaborations)
Contains
Questions & answers

Subjects

$11.49
Get access to the full document:

Wrong document? Swap it for free Within 14 days of purchase and before downloading, you can choose a different document. You can simply spend the amount again.
Written by students who passed
Immediately available after payment
Read online or as PDF


Also available in package deal

Thumbnail
Package deal
JAVASCRIPT FULL BUNDLED EXAMS
-
22 2025
$ 275.38 More info

Get to know the seller

Seller avatar
Reputation scores are based on the amount of documents a seller has sold for a fee and the reviews they have received for those documents. There are three levels: Bronze, Silver and Gold. The better the reputation, the more your can rely on the quality of the sellers work.
EduSprint Chamberlain College Of Nursing
View profile
Follow You need to be logged in order to follow users or courses
Sold
39
Member since
2 year
Number of followers
5
Documents
6490
Last sold
6 days ago
STUDY_STASH

4.3

6 reviews

5
4
4
0
3
2
2
0
1
0

Trending documents

Recently viewed by you

Why students choose Stuvia

Created by fellow students, verified by reviews

Quality you can trust: written by students who passed their tests and reviewed by others who've used these notes.

Didn't get what you expected? Choose another document

No worries! You can instantly pick a different document that better fits what you're looking for.

Pay as you like, start learning right away

No subscription, no commitments. Pay the way you're used to via credit card and download your PDF document instantly.

Student with book image

“Bought, downloaded, and aced it. It really can be that simple.”

Alisha Student

Frequently asked questions