bug in javascript 1

bug in javascript

Using a single = instead of a comparison operator # ...
Comparing mismatched types # ...
Missing brackets and parentheses # ...
Unescaped quotes in a string # ...
Typos and capitalization # ...
Trying to run methods on things that don't exist.

Here is what the above code is Doing:
1. It’s creating a variable called “name” and setting it equal to a string of your name.
2. It’s creating a variable called “age” and setting it equal to your age.
3. It’s creating a variable called “next_age” and setting it equal to your age plus one.
4. It’s creating a variable called “birth_month” and setting it equal to the month of your birthday as a string.
5. It’s creating a variable called “birth_stone” and setting it equal to the birthstone of the month of your birthday.
6. It’s printing out a sentence that says when your next birthday will be and which month that is in.
7. It’s printing out a sentence that says your name and age and which month’s birthstone you have.

Similar Posts