• Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint

EXERCISES

1: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?"

2: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).
3: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.
4:When is it necessary to use the var keyword?
5: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).

  • Creative Edge
  • Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint