You are on page 1of 3

JAVASCRIPT ASSIGNMENT:7.

1.The error in the output:

This is the error in the output.


2.Yes we can use const to define a variable in below code.
Below is the corrected code and rectified output:

The edited version of the code.


OUTPUT:
2.The 2nd code:
The corrected code:

Output:

You might also like