Class 05 Flashcards
Scripting language which is used to enhance the
functionality and appearance of web pages.
Javascript
indicates to the browser that the following text is a part of a script
script tag
write into an HTML document
innerHTML
write into HTML output box
document.write()
write into an alert box
window.alert()
write into the browsers console
console.log()
Gives you the ability to generate part or all of a web page’s content at the time it is shown to the user
Scripting
Used to declare the names of variables
var
A single-line comment begins with the characters
//
Multiline comments begin with delimiter
/* hello
world
!!!
*/
• A variable is assigned a value with an …
assignment operator (=)
Signifies that a variable has no value
null keyword
converts its string argument to an integer
parseInt
error that occurs at execution time.
logical error
an error that causes a script to fail and terminate prematurely.
fatal logical error