Test 3 Flashcards
(93 cards)
The JavaScript language is widely used for:
web-based client- side scripting
JavaScript essentially enables Web 2.0, the ________ side of the World Wide Web
dynamic
JavaScript is an implementation of __________ and developed by Brendan Eich & Netscape Communications Corporation in _____
ECMAScript
1995
JavaScript alternate names include:
___________,___________,_________
Microsoft calls their version:
Mocha, livescript, JavaScript
Jscript
JavaScript is only distantly related to the _______ programming language
The main similarity being its common debt to the ______ programming language
Java
C
What are the 2 ways to write JavaScript in an html document
Write JavaScript within a
element within the <head > element
Write JavaScript within a
element within the <body> element
JavaScript provides ________ methods to manipulate the output stream that represents the browser window
four (4)
What are the 4 methods to manipulate output on a browser window
1 method: opens wondow
2 methods: writes output in window
1 method: closes window
represents the browser window
It is a JavaScript object
document
Methods to open and close a browser window.
Open()
Close()
write a string a character to the browser window It does not generate a \n:
also writes a string of characters to the browser window It automatically generates a \n:
write()
writeln()
is a string containing the HTML markup and text to display in the browser window JavaScript strings are enclosed by “”
string
However , the \n is not interpreted by a web browser as a newline character If you want to insert a newline in a web page you must use a:
<br></br>
JavaScript provides ______ method to manipulate the output stream that represents a pop -up alert window
one (1)
Pop-up Alert Window method
window.alert (string )
_________ represents a pop-up alert window
It is a JavaScript object similar to _________
window
document
JavaScript identifiers:
Must start with letter, , or $
Can only have letters, digits,, and $
Cannot be JavaScript reserved word
Also case sensitive
JavaScript is a ____________ language !
loosely typed
JavaScript provides _____ method to obtain input from the user
one
Method to obtain input for user. method returns the value typed by the user
window.prompt (string)
Logical operators
And
Or
Not
&&
||
!
Comparison operators
Equal to
Exactly equal to
Not equal too
Not exactly equal too
==
!=
!==
The _______ statement will break the loop and continue executing the code that follows after the loop (if any).
The __________ statement will break the current loop and continue with the next value.
break
continue
The _______ statement loops through the elements of an array or through the properties of an object
for… in