Answered step by step
Verified Expert Solution
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
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
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started