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

JavaScript - mistake in Q132 (wrong answer) #6907

Open
1 of 6 tasks
DarrenSem opened this issue Nov 8, 2023 · 1 comment
Open
1 of 6 tasks

JavaScript - mistake in Q132 (wrong answer) #6907

DarrenSem opened this issue Nov 8, 2023 · 1 comment
Labels
good first issue Good for newcomers help wanted Extra attention is needed

Comments

@DarrenSem
Copy link

DarrenSem commented Nov 8, 2023

I'm submitting an ISSUE: please check one with "x"

  • New question{'s}
  • New assessment
  • Missed questions/answers
  • Request for new quiz/answers/...
  • Documentation issue or request for ...
  • ...

Wrong answer in JavaScript quiz:

https://github.com/Ebazhanov/linkedin-skill-assessments-quizzes/blob/main/javascript/javascript-quiz.md?plain=1#L1854

Q132. How would you add a data item named animal with a value of sloth to local storage for the current domain?

LocalStorage.setItem("animal","sloth");

document.localStorage.setItem("animal","sloth");

localStorage.setItem({animal:"sloth"});

localStorage.setItem("animal","sloth");

Incorrectly marked 2nd option as correct answer, but it should be the 4th option.
The 2nd option (document.localStorage) is undefined -- instead the correct usage is window.localStorage or globalThis.localStorage or just localStorage.

@DarrenSem DarrenSem changed the title JavaScript - mistake in Q129 (wrong answer) JavaScript - mistake in Q132 (wrong answer) Nov 8, 2023
@Ebazhanov Ebazhanov added help wanted Extra attention is needed good first issue Good for newcomers labels Nov 10, 2023
@mingfengwan
Copy link

@Ebazhanov They are correct and the answer should be changed

@chetannada chetannada mentioned this issue Jan 16, 2024
3 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
good first issue Good for newcomers help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

3 participants