182k views
13 votes
With a knowledge of strings and numbers, you can announce equations to the user. Create a file that includes four different equations created with JavaScript. Each equation should be displayed to the user through JavaScript (an alert, HTML output, etc). The left side of the equation and the equal sign should be in a string, and the answer should be the actual calculation. Do not type in the answer as part of the string.

Hint: When you concatenate these two data types, place the calculation inside parentheses. Concatenating a string and a number will coerce your number into becoming a string, so you’ll want the calculation to be executed before that happens.

When you are finished, make sure your files are up and working on your Neocities account. Submit your URL to your teacher to complete the assignment. Be sure your site functions live on Neocities and contains all of the assignment's requirements. Your assignment will be graded based on the rubric below.

User Mivk
by
5.2k points

1 Answer

12 votes

Answer:

//

Explanation:

User Martin Ackermann
by
4.8k points