Question: Please write JavaScript code for the four exercises listed below Be sure to document your work with comments for code management. Please write in JavaScript
Please write JavaScript code for the four exercises listed below Be sure to document your work with comments for code management. Please write in JavaScript not Java or any other coding language.
- Create a script that uses 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?"
- Write another script that inputs the number 234 as an integer, a floating-point number (234.5), a hexadecimal number, and the number in scientific notation. Use document.write() to display each number.
- Write a script that contains four variables: The first one contains your name, the second contains the value zero (0), the third one is declared but has no value, and the last contains an empty string. Then display the type of each (use the typeof operator).
- Write a script that demonstrates how concatenation works.
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
