Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

JavaScript Operators Practice In this practice assignment, you will create a JavaScript script where you will work with various operators. Create an external JavaScript script

image text in transcribed

JavaScript Operators Practice In this practice assignment, you will create a JavaScript script where you will work with various operators. Create an external JavaScript script called operators.js. Using JavaScript, create the following variables: a string that stores the string "10" a string that stores the string "3" a number that stores the number 10 . a number that stores the number 3 . a number that stores the number 2 . a number that stores the number 8.2567 Using the variables created above, create variables to store the results of the following calculations. For each of the below variables, include a console.log to output the results of the variable to the console. Pay close attention to the outputs. . 10 plus 3 10 minus 2 10 times 3 10 divided by 2 10 remainder 3 (modulus) 3 minus 8.2567 increment 10 by 1 using the unary operator decrement 10 by 1 using the unary operator 10 minus 4 using the shorthand math console log 3 (using the variable) increment 3 by 1 using the pre unary operator ++ (Ex: + +x) increment 3 by 1 using the post unary operator ++ (Ex: X++) console log 3 again (using the variable) 10 plus "10" "10" minus "3" . . Make sure you use Comments to document your code

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

More Books

Students also viewed these Databases questions

Question

Explain the function and purpose of the Job Level Table.

Answered: 1 week ago