You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Adding a comment causes a valid answer to be wrong #43578
first timers onlyOpen for anyone doing contributions for first time. You do not need permission to work on these.scope: curriculumLessons, Challenges, Projects and other Curricular Content in curriculum directory.
function checkScope() {
let i = 'function scope';
if (true) {
/* Block scope */
let i = 'block scope';
console.log('Block scope i is: ', i);
}
console.log('Function scope i is: ', i);
return i;
}
Console result after running tests:
// running tests
The variable i declared in the if statement should equal the string block scope.
// tests completed
// console output
Block scope i is: block scope
Function scope i is: function scope
Am an absolute newbie and this is my first first-step in Open Source World. Have submitted a PR to fix this issue. many thanks for providing this for a beginner to take up. While submitting the PR, i just realized that i have not taken care of the localization versions - Chinese, Spanish etc. Will the update be pushed to these versions automatically? Else should i update those files too and put in another PR. I did not want to break anything with the localization.
Thanks
first timers onlyOpen for anyone doing contributions for first time. You do not need permission to work on these.scope: curriculumLessons, Challenges, Projects and other Curricular Content in curriculum directory.
Activity
ojeytonwilliams commentedon Sep 27, 2021
Thanks for the report @jsgm. The problem is that comments are not removed from
(getUserInput('index')), only from thecodevariable.A simple fix would be to re-write the test to use
code. For example:elfransat commentedon Sep 27, 2021
Hi,
Would I be able to have a go at this?
Thanks
gikf commentedon Sep 27, 2021
Hey @elfransat
Issues are typically not assigned to anyone other than long-time contributors. You can read more about this at https://contribute.freecodecamp.org/#/FAQ?id=how-can-i-get-an-issue-assigned-to-me.
Issues labelled with
help wantedorfirst timers onlyare open for contributions.Please make sure you read our guidelines for contributing. Join us in our chat room or the forum if you need help contributing, our moderators will guide you through this.
elfransat commentedon Sep 27, 2021
hi @gikf
This issue does appear to have the label first timers only as far as I can tell.
gikf commentedon Sep 27, 2021
@elfransat, to use different words - you are free to contribute, if you are first-time contributor, and you don't need to ask 🙂
fix: update ES6-Compare Scopes of var and let
prashantaghoshal commentedon Sep 28, 2021
Hi @gikf
Am an absolute newbie and this is my first first-step in Open Source World. Have submitted a PR to fix this issue. many thanks for providing this for a beginner to take up. While submitting the PR, i just realized that i have not taken care of the localization versions - Chinese, Spanish etc. Will the update be pushed to these versions automatically? Else should i update those files too and put in another PR. I did not want to break anything with the localization.
Thanks
gikf commentedon Sep 28, 2021
Hey @prashantaghoshal
files in other languages don't need (nor should they) to be changed manually. They will be updated using the translation workflow.
prashantaghoshal commentedon Sep 28, 2021
Hi @gikf
Many Thanks for your review and guidance. have updated accordingly.
fix(curriculum): strip comments from code when testing (#43597)
Merge (#4)