Home > Articles > Open Source > Ajax & JavaScript

  • Print
  • + Share This
This chapter is from the book

This chapter is from the book



Create a script that uses the three primitive data types and prints output for each type. In the same script, print the following:

She cried, "Aren't you going to help me?"

Go to http://www.unicode.org/charts/PDF/U2600.pdf and find a symbol. Use JavaScript to display one of the symbols in a larger font (+5).


Write a script that displays the number 234 as an integer, a floating-point number, an octal number, a hexadecimal number, and the number in scientific notation.


When is it necessary to use the var keyword?


Write a script that contains four variables in the head of the document: the first one contains your name, the second contains the value 0, the third one is declared but has no value, and the last contains an empty string. In the body of the document, write another script to display the type of each (use the typeof operator).

  • + Share This
  • 🔖 Save To Your Account