Skip to content
New issue

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

Example 1 #1

Open
PeppeL-G opened this issue Sep 9, 2019 · 1 comment
Open

Example 1 #1

PeppeL-G opened this issue Sep 9, 2019 · 1 comment
Assignees
Labels
Client-Server Communication Any question you have while taking the course Client-Server Communication.

Comments

@PeppeL-G
Copy link
Owner

PeppeL-G commented Sep 9, 2019

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:

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.

The question(s)

Why does it display the number 14 instead of the expected number 17?

@PeppeL-G PeppeL-G self-assigned this Sep 9, 2019
@PeppeL-G PeppeL-G added the Client-Server Communication Any question you have while taking the course Client-Server Communication. label Sep 9, 2019
@PeppeL-G
Copy link
Owner Author

PeppeL-G commented Sep 9, 2019

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Client-Server Communication Any question you have while taking the course Client-Server Communication.
Projects
None yet
Development

No branches or pull requests

1 participant