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
Document preview thumbnail
Preview 2 out of 9 pages
Exam (elaborations)

JAVASCRIPT EXAMS SCRIPT 2026.pdf 1. Document information

Document preview thumbnail
Preview 2 out of 9 pages

JAVASCRIPT EXAMS SCRIPT 1. Document information

Content preview

JAVASCRIPT EXAMS SCRIPT 2026/2027 QUESTIONS AND
SOLUTIONS RATED A+
✔✔What are the 2 types of Numbers within Datatypes? - ✔✔Integer: Whole Number (-
1, 450)
Float:Decimal Point (0.1, 12.454)

✔✔What are Strings within Datatypes? - ✔✔A line of text: "frog", "a red truck"

✔✔What kind of value does Boolean take? - ✔✔True or False

✔✔What is an Array? - ✔✔Used to store multiple values in a single variable.

Real ["blue", "5", "123456"]

Refer to the whole array using its variable name
Arrays are indexed from 0

✔✔Objects - ✔✔Custom datatypes with properties and actions

✔✔Operators - ✔✔Used to assign values to variables and perform mathematical
operations on them

✔✔Math Based Operators - ✔✔

✔✔Comparison Operators - ✔✔

✔✔Example of comparison operators - ✔✔var num = "5"; var numString ="5",

==Interpreted Value

num ==numString (true)

===Interpreted value and data type

num===numString(false)

✔✔Conditionals - ✔✔Statements that allow for code to be executed against conditionals

IF, ELSE statements

✔✔Example of Conditional IF Statement - ✔✔if (This condition is true) {Do this thing}

var Country = "Australia";
var Hemisphere, var Language;

, if (country = "England") {
hemisphere = "northern";
language = "english";
}

✔✔Example of Conditional ELSE Statement - ✔✔Else statements allow us to make an
alternative statement if original condition is false

if (this condition is true){
...do this thing
}else{
...do this other thing
}

✔✔Loops - ✔✔Repetitive Conditional statements.

Used to perform a calculation a number of times, or to iterate over a set of variables.

✔✔Three main types of Loops - ✔✔For: Set Number of Iterations

While: Certain conditions are met

Do...While: Certain condition is met

✔✔For Loop Example - ✔✔Repeats until a specific condition becomes false

✔✔While Loop Example - ✔✔Iterate while the condition is true

while (condition) {
do this thing
}

✔✔Do While Loop - ✔✔Iterate while the condition is true

do {
... this thing
} while(condition);

✔✔Function - ✔✔Re-useable blocks of instructions that can be executed by name.

-Perform common tasks
-saves time, reduces error

function functionName (data) {

Document information

Uploaded on
July 20, 2026
Number of pages
9
Written in
2025/2026
Type
Exam (elaborations)
Contains
Questions & answers
$16.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.
BOARDWALK
3.5
(41)
Sold
284
Followers
11
Items
36005
Last sold
6 days 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