We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Client-Server Communication
I'm trying to compute and display the sum of 8 and 9 in JavaScript.
My JavaScript code looks like this:
const sum = 5 + 9 alert(sum)
When I run the code in a web browser it displays the number 14 instead of the expected number 17.
Why does it display the number 14 instead of the expected number 17?
The text was updated successfully, but these errors were encountered:
With your current code you compute the sum of 5 and 9, not the sum of 8 and 9.
Close this issue if you think your problem is solved.
Sorry, something went wrong.
PeppeL-G
No branches or pull requests
Course
Client-Server Communication
The problem
I'm trying to compute and display the sum of 8 and 9 in JavaScript.
Failed attempt
My JavaScript code looks like this:
When I run the code in a web browser it displays the number 14 instead of the expected number 17.
The question(s)
Why does it display the number 14 instead of the expected number 17?
The text was updated successfully, but these errors were encountered: