Studydroid is shutting down on January 1st, 2019
Cloned from: javascript

by egon8b


keywords:
Bookmark and Share



Front Back
write to page
document.write("");
alert window
window.alert("");
new line
\n
prompt window
window.prompt("");
convert numbers from strings to integers
parseInt(varname);
if..else statement
if( )
..... ;
else( )
...... ;
while loops
while( )
{
}
add one to var
var=var+1;
or
var++;
for loop
for(varname=initial value; loop continuation condition; increment)
do this;
switch
switch (var)
{
case "1":
var2="";
var3="";
break;
case "2":
var2="";
var3="";
break;
default:
}
do...while
do{

}while();
replace HTML value in an element designated by id
document.getElementById("").innerHTML="";
pull a value from an input field and store as id
document.getElementByID("").value;
x of y cards