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

updated grammar for 2 questions #673

Closed
wants to merge 1 commit into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 6 additions & 7 deletions src/data/javascript-quiz.ts
Original file line number Diff line number Diff line change
Expand Up @@ -326,19 +326,18 @@ const javascriptQuiz = [
Link: "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Operators/Strict_equality"
},
{
Question:
"In JavaScript, select the right syntax for an ES6 arrow function:",
Answer: "let variable = () => {//code block}",
Distractor1: "let variable => (){//code block}",
Distractor2: "let variable = function() => {//code block}",
Distractor3: "let variable = function(){//code block}",
Question: "Select the correct syntax for a JavaScript ES6 arrow function:",
Answer: "const variable = () => // code",
Distractor1: "const variable <=> ()()// code ",
Distractor2: "const variable === function() => {//code}",
Distractor3: "const variable =>> function(){//code}",
Explanation:
"ES6 arrow functions provide you with an alternative way to write shorter syntax compared to the traditional function expression.",
Link: "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Functions/Arrow_functions"
},
{
Question:
"In JavaScript, what will be the value of output? let output = null ?? 20",
"In JavaScript, what will be the value for the following code: null ?? 20",
Answer: "20",
Distractor1: "undefined",
Distractor2: "null",
Expand Down