• Wrong document? Swap it for free
  • Written by students who passed
  • Immediately available after payment
  • Read online or as PDF
Sell
Where do you study
Your language
Document preview thumbnail
Preview 2 out of 10 pages
Exam (elaborations)

Javascript Midterm Study Questions & Answers

Document preview thumbnail
Preview 2 out of 10 pages

JAVASCRIPT MIDTERM STUDY QUESTIONS & ANSWERS

Content preview

JAVASCRIPT MIDTERM STUDY
QUESTIONS & ANSWERS

Keywords - ANSWER-Terms in a programming language that are reserved for
special purposes by the programming language.

The three most common data types are: - ANSWER-numbers, strings,
boolean

Variables - ANSWER-Program data is stored at locations in memory while a
program is running. The data value stored in a variable can then be used,
and modified, by referencing its name.

Names can only contain - ANSWER-letters, numbers, underscores, and dollar
signs..

Names can only begin with - ANSWER-a letter, underscore, or dollar sign.
(generally, they always start with a letter)

Can not have the same name as a - ANSWER-JavaScript keyword

Spaces are - ANSWER-not allowed in variable names

Variable names should be - ANSWER-descriptive of the data they will

store.

Use camel case for variable names with - ANSWER-multiple words in the
name:

Operators - ANSWER-Operators are used to modify or compare data.

An operator is simply a symbol or word that is used to evaluate data in a
similar manner as common math.

There are 6 types of operators - ANSWER-Assignment Mathematical
(Arithmetic) Comparison Logical Bitwise Special

The Direct Assignment Operator (=) - ANSWER-The Direct Assignment
Operator (=)

Assignment operators are used to assign a value to a JavaScript variable.

, Constants - ANSWER-A constant is similar to a variable except that the value
doesn't change during program execution, it remains constant. A constant is
just a variable in JavaScript.

Mathematical Operators - ANSWER-The Mathematical operators are the
symbols used to add, subtract, multiply, and divide numbers in JavaScript.

Expressions - ANSWER-Expressions evaluate to values

Any piece of code that produces a value is an expression

What is a program statement? - ANSWER-It is an individual instruction for the
computer to process

the if statement - ANSWER-A selection control structure evaluates a
condition, which is an expression that's true or false. This allows the program
to choose between different courses of action.

Comparison Operators - ANSWER-Comparison Operators evaluate two values
as equal or different (the same, less-than or greater-than). They operate the
same way as relational operators in math.

The while loop - ANSWER-The repetition control structure, a loop, is a code
block that is executed one or more times

Comments - ANSWER-// and /* */

The JavaScript Console. It allows developers to: - ANSWER-Interactively
execute JavaScript on a

command line.

○ Log JavaScript messages and output that are

not visible outside of the console.

○ Troubleshoot, test, and debug code.

○ It is not part of JavaScript. It is provided as

part of the JavaScript runtime environment. In our case, the browser.

Language Level: Low-Level - ANSWER-Closest to machine language

Language Level: Lower Mid-Level - ANSWER-Human readable but able to
write at the machine level if necessary - slightly more abstracted from the
machine level.

Memory efficient Programmer still has to code mostly by hand

Document information

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

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

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
3.9
(8)
Sold
69
Followers
5
Items
7078
Last sold
1 week ago




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

Working on your references?

Create accurate citations in APA, MLA and Harvard with our free citation generator.

Working on your references?

Frequently asked questions