top of page

JavaScript to make personal quiz

JavaScript makes many entertaining sites for the web. Entertainment means making something engaging and interactive. A 10 question quiz about personal stuff can be fun, and JavaScript makes it all work.

In programming, we DECLCARE variables that will provide our progam with storage areas for the inputs that our audience enter. We must declare these variable in top of the program, because programs are read by the computer from top to bottom. Notice the abreviation VAR below. This is short for VARIABLE. We then must name the variable, in this case ANS, DONE, yourAns and yourAns and explainAnswer are the variables we declared and named for this program. Finally, we use the assignor symbol (=) to specify the type of variable it will be, in this case they are ARRAYS, which are special variables to hold many similar types of variable elements a paragraph. 

bottom of page