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).

JavaScript by Example
JavaScript by Example (2nd Edition)
ISBN: 0137054890
EAN: 2147483647
Year: 2003
Pages: 150
Authors: Ellie Quigley

Similar book on Amazon

flylib.com © 2008-2017.
If you may any questions please contact us: flylib@qtcs.net