-
Notifications
You must be signed in to change notification settings - Fork 9
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
feat: add JS Quiz #62
base: main
Are you sure you want to change the base?
Conversation
dzienisz
commented
Nov 13, 2024
•
edited
Loading
edited


The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
{ | ||
question: 'What is the purpose of the "use strict" directive in JavaScript?', | ||
options: [ | ||
'To enforce stricter parsing and error handling', |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I don't think there's a correct answer that would fit on one screen.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ok, we can change that
{ | ||
question: 'What is a closure in JavaScript?', | ||
options: [ | ||
'A function that has access to variables in its outer scope', |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
A function that creates a lexical scope to contain variables.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
thanks
Co-authored-by: Zbyszek Tenerowicz <[email protected]>
Co-authored-by: Zbyszek Tenerowicz <[email protected]>
Co-authored-by: Zbyszek Tenerowicz <[email protected]>
Maybe we could expose the questions via the API? And create some way for the users to We could be trying to accomplish something like this: |
Sure good idea! Do you want to do this? I think exposing API is too much. I thought it would be a fun quick game if you know JS. |
@dzienisz yeah I can do it. I might have some time next week. API is public by default so we would just move JSON/objects to the backend part. |