lightbulb_outline#JavaScriptTrivia 2

prompt( ); //for input

alert( ); //for notification

if( ) { } //for conditional

.toLowerCase( ) === "answer" //all input to be lowercased to match the exact answer

[ "arrays" ]; //storing data

for( ) { } //looping

document.write( ); //printing in the HTML file