Question: Objective: Practice JavaScript basic syntax, built-in functions, and user defined functions. Specification: Write a JavaScript program assignment01.js to perform the following tasks. No validation is

 Objective: Practice JavaScript basic syntax, built-in functions, and user defined functions.

Objective: Practice JavaScript basic syntax, built-in functions, and user defined functions. Specification: Write a JavaScript program assignment01.js to perform the following tasks. No validation is required for user input - assume that the user will enter valid information. Create comment line(s) for each of the Tasks using block comments, indicating the start point of each Task. e.g. * Task 1 **$**$**/ Task 1: Description as Comments In a comment section, describe the following terms with examples (Your code example may appear in comments). a) Infinity b) Undefined c) NaN Task 2: Conversion a) Using appropriate method, convert 1010 (binary) to decimal, AF (hex) to decimal and 713 (Octal) to decimal. Output appropriate messages to the console for each conversion. Task 3: Celsius and Fahrenheit temperatures a) Store a Celsius temperature in a variable. b) Convert it to Fahrenheit and output: "???C is ???F". //??? Represents the value c) Store a Fahrenheit temperature into a variable. d) Convert it to Celsius and output: "??? is ???C." Note: visit www.manuelsweb.com/temp.htm for temperature conversion formula. Task 4: Larger or largest number a) Write a function named largerNum using the declaration approach, the function: takes 2 arguments, both numbers, returns the larger (greater) one of the 2 numbers

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!