Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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

image text in transcribed
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

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Financial management theory and practice

Authors: Eugene F. Brigham and Michael C. Ehrhardt

12th Edition

978-0030243998, 30243998, 324422695, 978-0324422696

Students also viewed these Programming questions