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

exercise 3 #33866

Closed
CSchmidtRaab opened this issue Jun 1, 2024 · 1 comment
Closed

exercise 3 #33866

CSchmidtRaab opened this issue Jun 1, 2024 · 1 comment
Labels
closed: question A user misinterpretation or support question. No action required. Content:Learn:JavaScript Learning area JavaScript docs

Comments

@CSchmidtRaab
Copy link

MDN URL

https://developer.mozilla.org/en-US/docs/Learn/JavaScript/First_steps/Test_your_skills:_variables

What specific section or headline is this issue about?

exercise 3

What information was incorrect, unhelpful, or incomplete?

I'm new to this so I don't know how to fix this, but I just noticed it. In exercise 3, instead of '62' (20 + 42), the result of the code runs into '4220'.

What did you expect to see?

I expected the code to return '62' instead of '4220'.

Do you have any supporting links, references, or citations?

No response

Do you have anything more you want to share?

No response

MDN metadata

Page report details
@CSchmidtRaab CSchmidtRaab added the needs triage Triage needed by staff and/or partners. Automatically applied when an issue is opened. label Jun 1, 2024
@github-actions github-actions bot added the Content:Learn:JavaScript Learning area JavaScript docs label Jun 1, 2024
@Josh-Cena
Copy link
Member

myAge right now is a string. You need to convert it to a number first using myAge = Number(myAge); so that + 20 does number addition instead of string concatenation.

@Josh-Cena Josh-Cena closed this as not planned Won't fix, can't repro, duplicate, stale Jun 1, 2024
@Josh-Cena Josh-Cena added closed: question A user misinterpretation or support question. No action required. and removed needs triage Triage needed by staff and/or partners. Automatically applied when an issue is opened. labels Jun 1, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
closed: question A user misinterpretation or support question. No action required. Content:Learn:JavaScript Learning area JavaScript docs
Projects
None yet
Development

No branches or pull requests

2 participants