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 Basics AND A Beginners Guide Book - Part 1 ALL SOLUTION 2024/25 EDITION GUARANTEED GRADE A+

Rating
-
Sold
-
Pages
4
Grade
A+
Uploaded on
16-09-2024
Written in
2024/2025

JavaScript Basics AND A Beginners Guide Book - Part 1 ALL SOLUTION 2024/25 EDITION GUARANTEED GRADE A+ script/script tags that begin and end Javascript code within an HTML document alert() allows the program to display a special dialog box that will notify the user that an expected event has occurred var a name assigned to a literal value or object () inserts characters/text into the standard HTML text stream s= allows user to see message in the browser status line array simple collection of similar objects that can be accessed by a variable name/index cycling banner several graphics displayed one after another with a pause between images hyperlink rollover triggered when the user moves the mouse over a hyperlink image rollover change the appearance of an image whenever the user moves the mouse pointer over and off of it onMouseOver event generated whenever the user moves the mouse over a particular object onMouseOut event generated whenever the user moves the mouse off of a particular object doSubmit() function that calls up an activity when visitor submits form validateText() function that returns a value from a text box; either true or false setTimeout() sets a time frame for JavaScript functions to operate onLoad() event triggered when the Web browser has finished loading the body of the HTML Web page. doClear() function that erases any existing form data validateRadio() function that returns a value from a radio button; either true or false prevImage() changes image that is currently displayed on the screen to the former image external javascript javascript code written separately in order to be brought into a document nextImage() changes image that is currently displayed on the screen to the next image function segment of javascript code that can be invoked or called, written by a programmer and may contain any number of javascript statements event located within standard HTML tags; causes something to happen Mm() function that generates random numbers with decimals Variable names must begin with ____ or ______ or ______ A letter or underscore _ or dollar sign $ Write to the screen hello world in JavaScript script ("Hello World "); /script How can you explicitly identify JavaScript as your scripting language in your HTML internally script type="text/javascript" JavaScript code here.. /script How can you call external JavaScript code in your HTML? script type="text/javascript" SRC=" JavaScript code here.. /script Write code to defer loading external script until page fully loaded script type="text/javascript " src="" defer/script Write code to allow a page to continue to load without waiting for the script to load script type="text/javascript " src="" async/script Write code for webpage viewers browsing without JavaScript script type="text/javascript " src="" /script JavaScript code here /script noscriptno script code here/noscript You can place script between ____ tags and______tags only You can place script between head tags and bodytags Use single var statement to declare multiple variables var one, two, three; Use single var standby to declare and initialise multiple var var one=1, two = 2, three =3; var volatile; will give a compile error. True or false True: volatile is a reserved JavaScript keyword var continues =3; will give a compile error. True or false False: continues is a valid variable name. However, continue is a keyword in JavaScript var constant; will not give a compile error True: it is a valid variable name. const is a keyword and not a valid variable name var integer, double; will give a compile error. True or False False: integer and double are valid variable names. However int is a keyword and not a valid variable name yield, with, in, let, debugger are valid variable names. True or False False: all are keywords in JavaScript Javascript forces you to declare the type of a variable eg String one ="hello"; Double Two=10.0; True or False False: JavaScript does NOT force you to declare the type of variable eg var one="hello"; var two=10.0; JavaScript does NOT require numbers to be declared as integers, floating point etc. True or False True The following will give compile error: var one='hello'; var two="world "; True or false False: Both single ' ' and double quotes " " pairs can be used for string values. The following will give compile error: var one='hello"; var two="world "; True or false True: matching pairs must be the same i.e. ' ' and/or " " Declare a variable pets that contains "dog cat bird" and has a tab between each word var pets="dogtcattbird"; Declare a variable path that contains "c:homemabsc" and prints the same to the screen var path="c:homemabsc"; will print "c:homemabsrc to screen Display "Hello World" in a paragraph on page with strong emphasis on Hello pstrongHello/strongWorld/p The following JavaScript code will print: Hamlet says, "to be, or not to be". ("Hamlet says, " to be, or not to be" "); True or false False: extra quotes at end will cause error. Placing shows fur under quotes to become part of the string ("Hamlet says, " to be, or not to be" "); ( "he says: 'Hello' ."); will give compile error. True or false False: will print: he says:'Hello'. Using single quotes inside double quotes is OK and visa versa Declare a variable that is initialised to true. eg var open=... var open=true;

Show more Read less
Institution
A Beginners Gide Book - Part 1
Course
A Beginners Gide Book - Part 1

Content preview

JavaScript Basics AND A Beginners
Guide Book - Part 1 ALL SOLUTION
2024/25 EDITION GUARANTEED GRADE
A+
<script></script>
tags that begin and end Javascript code within an HTML document
alert()
allows the program to display a special dialog box that will notify
the user that an expected event has occurred
var
a name assigned to a literal value or object
document.write()
inserts characters/text into the standard HTML text stream
window.status=
allows user to see message in the browser status line
array
simple collection of similar objects that can be accessed by a
variable name/index
cycling banner
several graphics displayed one after another with a pause between
images
hyperlink rollover
triggered when the user moves the mouse over a hyperlink
image rollover
change the appearance of an image whenever the user moves the mouse
pointer over and off of it
onMouseOver
event generated whenever the user moves the mouse over a particular
object
onMouseOut
event generated whenever the user moves the mouse off of a particular
object
doSubmit()
function that calls up an activity when visitor submits form
validateText()
function that returns a value from a text box; either true or false
setTimeout()
sets a time frame for JavaScript functions to operate
onLoad()

Written for

Institution
A Beginners Gide Book - Part 1
Course
A Beginners Gide Book - Part 1

Document information

Uploaded on
September 16, 2024
Number of pages
4
Written in
2024/2025
Type
Exam (elaborations)
Contains
Questions & answers

Subjects

  • scriptscript
  • how
$12.99
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

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.
Allan100 Rasmussen College
View profile
Follow You need to be logged in order to follow users or courses
Sold
648
Member since
5 year
Number of followers
605
Documents
3226
Last sold
2 months ago

3.5

92 reviews

5
36
4
17
3
15
2
5
1
19

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