• 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 1 out of 3 pages
Exam (elaborations)

JavaScript Beginner Exams QUESTIONS AND ANSWERS

Document preview thumbnail
Preview 1 out of 3 pages

JavaScript Beginner JavaScript - Answer-Language used to add special effects and interactivity to a website JavaScript Script Element - Answer-To write script within an HTML file. JavaScript Alert Function - Answer-Allows you to 'alert' your user with a popup window that displays over the screen with a custom message you provide. JavaScript Comment - Answer-// is the JavaScript comment used to keep something in your code and hidden from the web browser. JavaScript Data Types - Answer-There are three main types of data: String, Number, and Boolean. JavaScript String Data - Answer-Is a group of words, like a sentence. When writing a String in JavaScript, you need to wrap the group of words you are using within quotes. JavaScript Number Data - Answer-Is just that, a number and unlike a String, a Number does not need to be wrapped in anything. If you write out a number, like 24, it will be read as a number automatically. JavaScript Boolean Data - Answer-Is a logical entity and can only have two values: true and false. A Boolean is like a Number and does not need to be wrapped in anything. If you set something to true, it will be read as a Boolean. JavaScript Variables - Answer-They hold a value so you can use it throughout your websites. JavaScript If Statements - Answer-Allow you only to execute code when certain conditions are met. Like if x is true then do y. JavaScript Comparison Operators - Answer-Used to compare data types. Includes =, ===, !==, , and more. JavaScript Else Statement - Answer-Provides a second option of what to do if the conditions in your if statement is NOT true. JavaScript Else If Statements - Answer-This condition will be executed when the first if statement is not true but will also check to see if the conditions in the else if is true. JavaScript Arrays - Answer-Used to store multiple values within one variable. JavaScript .length Property - Answer-Will return how many values are within the array. JavaScript .sort() Property - Answer-Will sort your array and return another array


Document information

Uploaded on
May 23, 2024
Number of pages
3
Written in
2023/2024
Type
Exam (elaborations)
Contains
Questions & answers
$8.49

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.
Freshy
3.6
(11)
Sold
65
Followers
4
Items
6964
Last sold
3 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

Whoops! We can’t load your doc right now. Try again or contact support.