SlideShare a Scribd company logo
1 of 48
Download to read offline
ES6 King
Interactive fun quiz about new generation of
JavaScript for your front end developers that will
make them sweat and swear
ES6 King
Interactive fun quiz about new generation of
JavaScript for your front end developers that will
make them sweat and swear
ES6 King
ES2015
Interactive fun quiz about new generation of
JavaScript for your front end developers that will
make them sweat and swear
Rules
4 teams
4 possible answers
1 minute per question
1 winner
The answer must be explained
12 questions
Rules
4 teams
4 possible answers
1 minute per question
1 winner
The answer must be explained
12 questions
Rules
4 teams
4 possible answers
1 minute per question
1 winner
The answer must be explained
12 questions
Rules
4 teams
4 possible answers
1 minute per question
1 winner
The answer must be explained
12 questions
Rules
4 teams
4 possible answers
1 minute per question
1 winner
The answer must be explained
12 questions
Rules
4 teams
4 possible answers
1 minute per question
1 winner
The answer must be explained
12 questions
Ready?
Steady!
Go!
01
Question01
let x = 42;
if (true) {
console.log(x);
let x = 1337;
}
What’s the result of
the console.log
operation?
1. 42
2. undefined
3. Error
4. 1337
let x = 42;
if (true) {
console.log(x);
let x = 1337;
}
What’s the result of
the console.log
operation?
1. 42
2. undefined
3. Error
4. 1337
01
Question02
var x = `foo ${y}`,
y = `bar ${x}`;
console.log(y);
What’s the result of
this code?
1. bar foo bar
undefined
2. bar foo
undefined
3. bar foo
4. InternalError
What’s the result of
this code?
var x = `foo ${y}`,
y = `bar ${x}`;
console.log(y);
1. bar foo bar
undefined
2. bar foo
undefined
3. bar foo
4. InternalError
01
Question03
What’s the result of
this code?
1. 1
2. 3
3. [1,2,3]
4. Error
((...x, xs)=>x)(1,2,3)
What’s the result of
this code?
((...x, xs)=>x)(1,2,3)
1. 1
2. 3
3. [1,2,3]
4. Error
01
Question04
(new function f () {
this.a = 1;
return ((...b) => {
return this.a;
}).bind({ a: 9 });
})();
What’s the result of
this code?
1. 9
2. undefined
3. TypeError
4. 1
(new function f () {
this.a = 1;
return ((...b) => {
return this.a;
}).bind({ a: 9 });
})();
What’s the result of
this code?
1. 9
2. undefined
3. TypeError
4. 1
01
Question05
let x, { x: y = 1 } = { x }; y;
What’s the result of
this code?
1. undefined
2. 1
3. {x: 1}
4. Error
What’s the result of
this code?
let x, { x: y = 1 } = { x }; y;
1. undefined
2. 1
3. {x: 1}
4. Error
01
Question06
typeof (function* f() {
yield f;
})().next()
What’s the result of
this code?
1. “function”
2. “generator”
3. “object”
4. Error
typeof (function* f() {
yield f;
})().next()
What’s the result of
this code?
1. “function”
2. “generator”
3. “object”
4. Error
01
Question07
class MyClass {
const MY_CONST = 'string';
constructor() {
this.MY_CONST;
}
}
let myClass = new MyClass();
console.log(myClass.MY_CONST);
What’s the result of
this code?
1. ‘string’
2. SyntaxError
3. undefined
4. ReferenceError
class MyClass {
const MY_CONST = 'string';
constructor() {
this.MY_CONST;
}
}
let myClass = new MyClass();
console.log(myClass.MY_CONST);
What’s the result of
this code?
1. ‘string’
2. SyntaxError
3. undefined
4. ReferenceError
01
Question08
function* g() {
return 1;
}
for (let i of g())
console.log(i);
What’s the result of
this code?
1. 1
2. Error
3. undefined
4. [object Object]
function* g() {
return 1;
}
for (let i of g())
console.log(i);
What’s the result of
this code?
1. 1
2. Error
3. undefined
4. [object Object]
01
Question09
let popo = (function*() {
console.log([yield, yield]);
}());
popo.next(1);
popo.next(2);
popo.next(3);
What’s the result of
this code?
1. [1,2]
2. [2,3]
3. [1,undefined]
4. Error
let popo = (function*() {
console.log([yield, yield]);
}());
popo.next(1);
popo.next(2);
popo.next(3);
What’s the result of
this code?
1. [1,2]
2. [2,3]
3. [1,undefined]
4. Error
01
Question10
What’s the result of
this code?
1. f, f, f
2. f, t, f
3. f, t, t
4. t, t, t
class X {}
class Y extends X {}
console.log(Object.getPrototypeOf(X) ===
Function.prototype);
console.log(Object.getPrototypeOf(Y) === X);
console.log(Object.getPrototypeOf(new Y()) ===
Y.prototype)
What’s the result of
this code?
1. f, f, f
2. f, t, f
3. f, t, t
4. t, t, t
class X {}
class Y extends X {}
console.log(Object.getPrototypeOf(X) ===
Function.prototype);
console.log(Object.getPrototypeOf(Y) === X);
console.log(Object.getPrototypeOf(new Y()) ===
Y.prototype)
01
Question11
What’s the result of
this code?
1. []
2. [2,3,4,5,1]
3. [5,4,3,2,1]
4. Error
let f = (x, ...y) => x?[...f(...y), x]:[];
let arr = [], i = 0;
for (arr[i++] of f(1,2,3,4,5)) {}
console.log(arr);
What’s the result of
this code?
1. []
2. [2,3,4,5,1]
3. [5,4,3,2,1]
4. Error
let f = (x, ...y) => x?[...f(...y), x]:[];
let arr = [], i = 0;
for (arr[i++] of f(1,2,3,4,5)) {}
console.log(arr);
01
Question12
What’s the result of
this code?
1. [1,2]
2. 3
3. 4
4. 5 let m = new Map([[1,2],[[1,2],3],[2,4],[3,5]]);
console.log(m.get([...m][1][1]));
What’s the result of
this code?
1. [1,2]
2. 3
3. 4
4. 5 let m = new Map([[1,2],[[1,2],3],[2,4],[3,5]]);
console.log(m.get([...m][1][1]));
And the
winner is...
Thank You
credits:
● Afonso Matos
● Juriy Zaytsev
● Dmitry Soshnikov
● Kim Gysen
● Ben Katz
● Sergey Bolshchikov

More Related Content

What's hot

What's hot (16)

Tools and Techniques for Understanding Threading Behavior in Android*
Tools and Techniques for Understanding Threading Behavior in Android*Tools and Techniques for Understanding Threading Behavior in Android*
Tools and Techniques for Understanding Threading Behavior in Android*
 
Operators
OperatorsOperators
Operators
 
Ch02 primitive-data-definite-loops
Ch02 primitive-data-definite-loopsCh02 primitive-data-definite-loops
Ch02 primitive-data-definite-loops
 
The Ring programming language version 1.8 book - Part 7 of 202
The Ring programming language version 1.8 book - Part 7 of 202The Ring programming language version 1.8 book - Part 7 of 202
The Ring programming language version 1.8 book - Part 7 of 202
 
Puzzle Solving Using Model Checking
Puzzle Solving Using Model Checking Puzzle Solving Using Model Checking
Puzzle Solving Using Model Checking
 
Cc code cards
Cc code cardsCc code cards
Cc code cards
 
Java Programs
Java ProgramsJava Programs
Java Programs
 
S 3
S 3S 3
S 3
 
Alg1 lesson 7-1
Alg1 lesson 7-1Alg1 lesson 7-1
Alg1 lesson 7-1
 
The Ring programming language version 1.3 book - Part 23 of 88
The Ring programming language version 1.3 book - Part 23 of 88The Ring programming language version 1.3 book - Part 23 of 88
The Ring programming language version 1.3 book - Part 23 of 88
 
Lucio Floretta - TensorFlow and Deep Learning without a PhD - Codemotion Mila...
Lucio Floretta - TensorFlow and Deep Learning without a PhD - Codemotion Mila...Lucio Floretta - TensorFlow and Deep Learning without a PhD - Codemotion Mila...
Lucio Floretta - TensorFlow and Deep Learning without a PhD - Codemotion Mila...
 
&Y tgs P kii for
&Y tgs P kii for&Y tgs P kii for
&Y tgs P kii for
 
Simulado java se 7 programmer
Simulado java se 7 programmerSimulado java se 7 programmer
Simulado java se 7 programmer
 
The Ring programming language version 1.4 book - Part 5 of 30
The Ring programming language version 1.4 book - Part 5 of 30The Ring programming language version 1.4 book - Part 5 of 30
The Ring programming language version 1.4 book - Part 5 of 30
 
Fibonacci
FibonacciFibonacci
Fibonacci
 
The Ring programming language version 1.5.3 book - Part 27 of 184
The Ring programming language version 1.5.3 book - Part 27 of 184The Ring programming language version 1.5.3 book - Part 27 of 184
The Ring programming language version 1.5.3 book - Part 27 of 184
 

Similar to ES2015 Quiz

Page 1 Multiple Choice QuestionsQuestion 1.1. (TCO 1) What.docx
Page 1 Multiple Choice QuestionsQuestion 1.1. (TCO 1) What.docxPage 1 Multiple Choice QuestionsQuestion 1.1. (TCO 1) What.docx
Page 1 Multiple Choice QuestionsQuestion 1.1. (TCO 1) What.docx
alfred4lewis58146
 
Sample Exam Questions on Python for revision
Sample Exam Questions on Python for revisionSample Exam Questions on Python for revision
Sample Exam Questions on Python for revision
afsheenfaiq2
 
CMIS 141 7984 Introductory Programming (2158)A non-local boole.docx
CMIS 141 7984 Introductory Programming (2158)A non-local boole.docxCMIS 141 7984 Introductory Programming (2158)A non-local boole.docx
CMIS 141 7984 Introductory Programming (2158)A non-local boole.docx
drennanmicah
 
QUESTION 11. Which of these is not a core datatypeLists.docx
QUESTION 11. Which of these is not a core datatypeLists.docxQUESTION 11. Which of these is not a core datatypeLists.docx
QUESTION 11. Which of these is not a core datatypeLists.docx
IRESH3
 
All based on Zybooks = AP Java with zylabsQUESTION 1char[][] tab.pdf
All based on Zybooks = AP Java with zylabsQUESTION 1char[][] tab.pdfAll based on Zybooks = AP Java with zylabsQUESTION 1char[][] tab.pdf
All based on Zybooks = AP Java with zylabsQUESTION 1char[][] tab.pdf
aroraenterprisesmbd
 
WINSEM2020-21_STS3105_SS_VL2020210500169_Reference_Material_I_01-Mar-2021_L12...
WINSEM2020-21_STS3105_SS_VL2020210500169_Reference_Material_I_01-Mar-2021_L12...WINSEM2020-21_STS3105_SS_VL2020210500169_Reference_Material_I_01-Mar-2021_L12...
WINSEM2020-21_STS3105_SS_VL2020210500169_Reference_Material_I_01-Mar-2021_L12...
MaruMengesha
 
Scjp questions
Scjp questionsScjp questions
Scjp questions
roudhran
 

Similar to ES2015 Quiz (20)

Chapter 9 Flow Of Control Knowledge Boat.pdf
Chapter 9 Flow Of Control Knowledge Boat.pdfChapter 9 Flow Of Control Knowledge Boat.pdf
Chapter 9 Flow Of Control Knowledge Boat.pdf
 
Python Puzzlers
Python PuzzlersPython Puzzlers
Python Puzzlers
 
Review
ReviewReview
Review
 
Python Peculiarities
Python PeculiaritiesPython Peculiarities
Python Peculiarities
 
Review version 2
Review version 2Review version 2
Review version 2
 
21 Essential JavaScript Interview Questions
21 Essential JavaScript Interview Questions21 Essential JavaScript Interview Questions
21 Essential JavaScript Interview Questions
 
Review version 4
Review version 4Review version 4
Review version 4
 
Page 1 Multiple Choice QuestionsQuestion 1.1. (TCO 1) What.docx
Page 1 Multiple Choice QuestionsQuestion 1.1. (TCO 1) What.docxPage 1 Multiple Choice QuestionsQuestion 1.1. (TCO 1) What.docx
Page 1 Multiple Choice QuestionsQuestion 1.1. (TCO 1) What.docx
 
Sample Exam Questions on Python for revision
Sample Exam Questions on Python for revisionSample Exam Questions on Python for revision
Sample Exam Questions on Python for revision
 
Introduction to Erlang
Introduction to ErlangIntroduction to Erlang
Introduction to Erlang
 
CMIS 141 7984 Introductory Programming (2158)A non-local boole.docx
CMIS 141 7984 Introductory Programming (2158)A non-local boole.docxCMIS 141 7984 Introductory Programming (2158)A non-local boole.docx
CMIS 141 7984 Introductory Programming (2158)A non-local boole.docx
 
The Ring programming language version 1.5 book - Part 5 of 31
The Ring programming language version 1.5 book - Part 5 of 31The Ring programming language version 1.5 book - Part 5 of 31
The Ring programming language version 1.5 book - Part 5 of 31
 
Facts about multithreading that'll keep you up at night - Guy Bar on, Vonage
Facts about multithreading that'll keep you up at night - Guy Bar on, VonageFacts about multithreading that'll keep you up at night - Guy Bar on, Vonage
Facts about multithreading that'll keep you up at night - Guy Bar on, Vonage
 
QUESTION 11. Which of these is not a core datatypeLists.docx
QUESTION 11. Which of these is not a core datatypeLists.docxQUESTION 11. Which of these is not a core datatypeLists.docx
QUESTION 11. Which of these is not a core datatypeLists.docx
 
Advanced Debugging Using Java Bytecodes
Advanced Debugging Using Java BytecodesAdvanced Debugging Using Java Bytecodes
Advanced Debugging Using Java Bytecodes
 
Review version 3
Review version 3Review version 3
Review version 3
 
All based on Zybooks = AP Java with zylabsQUESTION 1char[][] tab.pdf
All based on Zybooks = AP Java with zylabsQUESTION 1char[][] tab.pdfAll based on Zybooks = AP Java with zylabsQUESTION 1char[][] tab.pdf
All based on Zybooks = AP Java with zylabsQUESTION 1char[][] tab.pdf
 
WINSEM2020-21_STS3105_SS_VL2020210500169_Reference_Material_I_01-Mar-2021_L12...
WINSEM2020-21_STS3105_SS_VL2020210500169_Reference_Material_I_01-Mar-2021_L12...WINSEM2020-21_STS3105_SS_VL2020210500169_Reference_Material_I_01-Mar-2021_L12...
WINSEM2020-21_STS3105_SS_VL2020210500169_Reference_Material_I_01-Mar-2021_L12...
 
Scjp questions
Scjp questionsScjp questions
Scjp questions
 
Once Upon a Process
Once Upon a ProcessOnce Upon a Process
Once Upon a Process
 

More from Sergey Bolshchikov

More from Sergey Bolshchikov (14)

Onboarding for Software Engineers Done Right
Onboarding for Software Engineers Done RightOnboarding for Software Engineers Done Right
Onboarding for Software Engineers Done Right
 
Pragmatic React Workshop
Pragmatic React WorkshopPragmatic React Workshop
Pragmatic React Workshop
 
Microservices on the client side
Microservices on the client sideMicroservices on the client side
Microservices on the client side
 
Talking code: How To
Talking code: How ToTalking code: How To
Talking code: How To
 
Values & Culture of Continuous Deliver
Values & Culture of Continuous DeliverValues & Culture of Continuous Deliver
Values & Culture of Continuous Deliver
 
Protractor: Tips & Tricks
Protractor: Tips & TricksProtractor: Tips & Tricks
Protractor: Tips & Tricks
 
Continuous Delivery for Front-End Engineers
Continuous Delivery for Front-End EngineersContinuous Delivery for Front-End Engineers
Continuous Delivery for Front-End Engineers
 
Зачем нужен EmberJS, если мне хвататет jQuery
Зачем нужен EmberJS, если мне хвататет jQueryЗачем нужен EmberJS, если мне хвататет jQuery
Зачем нужен EmberJS, если мне хвататет jQuery
 
Ember Reusable Components and Widgets
Ember Reusable Components and WidgetsEmber Reusable Components and Widgets
Ember Reusable Components and Widgets
 
Front End Development: The Important Parts
Front End Development: The Important PartsFront End Development: The Important Parts
Front End Development: The Important Parts
 
Web Projects: From Theory To Practice
Web Projects: From Theory To PracticeWeb Projects: From Theory To Practice
Web Projects: From Theory To Practice
 
AngularJS Basics with Example
AngularJS Basics with ExampleAngularJS Basics with Example
AngularJS Basics with Example
 
Backbone Basics with Examples
Backbone Basics with ExamplesBackbone Basics with Examples
Backbone Basics with Examples
 
JS Single-Page Web App Essentials
JS Single-Page Web App EssentialsJS Single-Page Web App Essentials
JS Single-Page Web App Essentials
 

Recently uploaded

introduction-to-automotive Andoid os-csimmonds-ndctechtown-2021.pdf
introduction-to-automotive Andoid os-csimmonds-ndctechtown-2021.pdfintroduction-to-automotive Andoid os-csimmonds-ndctechtown-2021.pdf
introduction-to-automotive Andoid os-csimmonds-ndctechtown-2021.pdf
VishalKumarJha10
 
AI Mastery 201: Elevating Your Workflow with Advanced LLM Techniques
AI Mastery 201: Elevating Your Workflow with Advanced LLM TechniquesAI Mastery 201: Elevating Your Workflow with Advanced LLM Techniques
AI Mastery 201: Elevating Your Workflow with Advanced LLM Techniques
VictorSzoltysek
 
+971565801893>>SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHAB...
+971565801893>>SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHAB...+971565801893>>SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHAB...
+971565801893>>SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHAB...
Health
 

Recently uploaded (20)

introduction-to-automotive Andoid os-csimmonds-ndctechtown-2021.pdf
introduction-to-automotive Andoid os-csimmonds-ndctechtown-2021.pdfintroduction-to-automotive Andoid os-csimmonds-ndctechtown-2021.pdf
introduction-to-automotive Andoid os-csimmonds-ndctechtown-2021.pdf
 
10 Trends Likely to Shape Enterprise Technology in 2024
10 Trends Likely to Shape Enterprise Technology in 202410 Trends Likely to Shape Enterprise Technology in 2024
10 Trends Likely to Shape Enterprise Technology in 2024
 
call girls in Vaishali (Ghaziabad) 🔝 >༒8448380779 🔝 genuine Escort Service 🔝✔️✔️
call girls in Vaishali (Ghaziabad) 🔝 >༒8448380779 🔝 genuine Escort Service 🔝✔️✔️call girls in Vaishali (Ghaziabad) 🔝 >༒8448380779 🔝 genuine Escort Service 🔝✔️✔️
call girls in Vaishali (Ghaziabad) 🔝 >༒8448380779 🔝 genuine Escort Service 🔝✔️✔️
 
The Top App Development Trends Shaping the Industry in 2024-25 .pdf
The Top App Development Trends Shaping the Industry in 2024-25 .pdfThe Top App Development Trends Shaping the Industry in 2024-25 .pdf
The Top App Development Trends Shaping the Industry in 2024-25 .pdf
 
%in Bahrain+277-882-255-28 abortion pills for sale in Bahrain
%in Bahrain+277-882-255-28 abortion pills for sale in Bahrain%in Bahrain+277-882-255-28 abortion pills for sale in Bahrain
%in Bahrain+277-882-255-28 abortion pills for sale in Bahrain
 
AI Mastery 201: Elevating Your Workflow with Advanced LLM Techniques
AI Mastery 201: Elevating Your Workflow with Advanced LLM TechniquesAI Mastery 201: Elevating Your Workflow with Advanced LLM Techniques
AI Mastery 201: Elevating Your Workflow with Advanced LLM Techniques
 
+971565801893>>SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHAB...
+971565801893>>SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHAB...+971565801893>>SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHAB...
+971565801893>>SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHAB...
 
%in Lydenburg+277-882-255-28 abortion pills for sale in Lydenburg
%in Lydenburg+277-882-255-28 abortion pills for sale in Lydenburg%in Lydenburg+277-882-255-28 abortion pills for sale in Lydenburg
%in Lydenburg+277-882-255-28 abortion pills for sale in Lydenburg
 
SHRMPro HRMS Software Solutions Presentation
SHRMPro HRMS Software Solutions PresentationSHRMPro HRMS Software Solutions Presentation
SHRMPro HRMS Software Solutions Presentation
 
Payment Gateway Testing Simplified_ A Step-by-Step Guide for Beginners.pdf
Payment Gateway Testing Simplified_ A Step-by-Step Guide for Beginners.pdfPayment Gateway Testing Simplified_ A Step-by-Step Guide for Beginners.pdf
Payment Gateway Testing Simplified_ A Step-by-Step Guide for Beginners.pdf
 
%in Hazyview+277-882-255-28 abortion pills for sale in Hazyview
%in Hazyview+277-882-255-28 abortion pills for sale in Hazyview%in Hazyview+277-882-255-28 abortion pills for sale in Hazyview
%in Hazyview+277-882-255-28 abortion pills for sale in Hazyview
 
%in kaalfontein+277-882-255-28 abortion pills for sale in kaalfontein
%in kaalfontein+277-882-255-28 abortion pills for sale in kaalfontein%in kaalfontein+277-882-255-28 abortion pills for sale in kaalfontein
%in kaalfontein+277-882-255-28 abortion pills for sale in kaalfontein
 
Right Money Management App For Your Financial Goals
Right Money Management App For Your Financial GoalsRight Money Management App For Your Financial Goals
Right Money Management App For Your Financial Goals
 
Chinsurah Escorts ☎️8617697112 Starting From 5K to 15K High Profile Escorts ...
Chinsurah Escorts ☎️8617697112  Starting From 5K to 15K High Profile Escorts ...Chinsurah Escorts ☎️8617697112  Starting From 5K to 15K High Profile Escorts ...
Chinsurah Escorts ☎️8617697112 Starting From 5K to 15K High Profile Escorts ...
 
Exploring the Best Video Editing App.pdf
Exploring the Best Video Editing App.pdfExploring the Best Video Editing App.pdf
Exploring the Best Video Editing App.pdf
 
W01_panagenda_Navigating-the-Future-with-The-Hitchhikers-Guide-to-Notes-and-D...
W01_panagenda_Navigating-the-Future-with-The-Hitchhikers-Guide-to-Notes-and-D...W01_panagenda_Navigating-the-Future-with-The-Hitchhikers-Guide-to-Notes-and-D...
W01_panagenda_Navigating-the-Future-with-The-Hitchhikers-Guide-to-Notes-and-D...
 
%in tembisa+277-882-255-28 abortion pills for sale in tembisa
%in tembisa+277-882-255-28 abortion pills for sale in tembisa%in tembisa+277-882-255-28 abortion pills for sale in tembisa
%in tembisa+277-882-255-28 abortion pills for sale in tembisa
 
Crypto Cloud Review - How To Earn Up To $500 Per DAY Of Bitcoin 100% On AutoP...
Crypto Cloud Review - How To Earn Up To $500 Per DAY Of Bitcoin 100% On AutoP...Crypto Cloud Review - How To Earn Up To $500 Per DAY Of Bitcoin 100% On AutoP...
Crypto Cloud Review - How To Earn Up To $500 Per DAY Of Bitcoin 100% On AutoP...
 
OpenChain - The Ramifications of ISO/IEC 5230 and ISO/IEC 18974 for Legal Pro...
OpenChain - The Ramifications of ISO/IEC 5230 and ISO/IEC 18974 for Legal Pro...OpenChain - The Ramifications of ISO/IEC 5230 and ISO/IEC 18974 for Legal Pro...
OpenChain - The Ramifications of ISO/IEC 5230 and ISO/IEC 18974 for Legal Pro...
 
%in Stilfontein+277-882-255-28 abortion pills for sale in Stilfontein
%in Stilfontein+277-882-255-28 abortion pills for sale in Stilfontein%in Stilfontein+277-882-255-28 abortion pills for sale in Stilfontein
%in Stilfontein+277-882-255-28 abortion pills for sale in Stilfontein
 

ES2015 Quiz

  • 1. ES6 King Interactive fun quiz about new generation of JavaScript for your front end developers that will make them sweat and swear
  • 2. ES6 King Interactive fun quiz about new generation of JavaScript for your front end developers that will make them sweat and swear
  • 3. ES6 King ES2015 Interactive fun quiz about new generation of JavaScript for your front end developers that will make them sweat and swear
  • 4. Rules 4 teams 4 possible answers 1 minute per question 1 winner The answer must be explained 12 questions
  • 5. Rules 4 teams 4 possible answers 1 minute per question 1 winner The answer must be explained 12 questions
  • 6. Rules 4 teams 4 possible answers 1 minute per question 1 winner The answer must be explained 12 questions
  • 7. Rules 4 teams 4 possible answers 1 minute per question 1 winner The answer must be explained 12 questions
  • 8. Rules 4 teams 4 possible answers 1 minute per question 1 winner The answer must be explained 12 questions
  • 9. Rules 4 teams 4 possible answers 1 minute per question 1 winner The answer must be explained 12 questions
  • 12. let x = 42; if (true) { console.log(x); let x = 1337; } What’s the result of the console.log operation? 1. 42 2. undefined 3. Error 4. 1337
  • 13. let x = 42; if (true) { console.log(x); let x = 1337; } What’s the result of the console.log operation? 1. 42 2. undefined 3. Error 4. 1337
  • 15. var x = `foo ${y}`, y = `bar ${x}`; console.log(y); What’s the result of this code? 1. bar foo bar undefined 2. bar foo undefined 3. bar foo 4. InternalError
  • 16. What’s the result of this code? var x = `foo ${y}`, y = `bar ${x}`; console.log(y); 1. bar foo bar undefined 2. bar foo undefined 3. bar foo 4. InternalError
  • 18. What’s the result of this code? 1. 1 2. 3 3. [1,2,3] 4. Error ((...x, xs)=>x)(1,2,3)
  • 19. What’s the result of this code? ((...x, xs)=>x)(1,2,3) 1. 1 2. 3 3. [1,2,3] 4. Error
  • 21. (new function f () { this.a = 1; return ((...b) => { return this.a; }).bind({ a: 9 }); })(); What’s the result of this code? 1. 9 2. undefined 3. TypeError 4. 1
  • 22. (new function f () { this.a = 1; return ((...b) => { return this.a; }).bind({ a: 9 }); })(); What’s the result of this code? 1. 9 2. undefined 3. TypeError 4. 1
  • 24. let x, { x: y = 1 } = { x }; y; What’s the result of this code? 1. undefined 2. 1 3. {x: 1} 4. Error
  • 25. What’s the result of this code? let x, { x: y = 1 } = { x }; y; 1. undefined 2. 1 3. {x: 1} 4. Error
  • 27. typeof (function* f() { yield f; })().next() What’s the result of this code? 1. “function” 2. “generator” 3. “object” 4. Error
  • 28. typeof (function* f() { yield f; })().next() What’s the result of this code? 1. “function” 2. “generator” 3. “object” 4. Error
  • 30. class MyClass { const MY_CONST = 'string'; constructor() { this.MY_CONST; } } let myClass = new MyClass(); console.log(myClass.MY_CONST); What’s the result of this code? 1. ‘string’ 2. SyntaxError 3. undefined 4. ReferenceError
  • 31. class MyClass { const MY_CONST = 'string'; constructor() { this.MY_CONST; } } let myClass = new MyClass(); console.log(myClass.MY_CONST); What’s the result of this code? 1. ‘string’ 2. SyntaxError 3. undefined 4. ReferenceError
  • 33. function* g() { return 1; } for (let i of g()) console.log(i); What’s the result of this code? 1. 1 2. Error 3. undefined 4. [object Object]
  • 34. function* g() { return 1; } for (let i of g()) console.log(i); What’s the result of this code? 1. 1 2. Error 3. undefined 4. [object Object]
  • 36. let popo = (function*() { console.log([yield, yield]); }()); popo.next(1); popo.next(2); popo.next(3); What’s the result of this code? 1. [1,2] 2. [2,3] 3. [1,undefined] 4. Error
  • 37. let popo = (function*() { console.log([yield, yield]); }()); popo.next(1); popo.next(2); popo.next(3); What’s the result of this code? 1. [1,2] 2. [2,3] 3. [1,undefined] 4. Error
  • 39. What’s the result of this code? 1. f, f, f 2. f, t, f 3. f, t, t 4. t, t, t class X {} class Y extends X {} console.log(Object.getPrototypeOf(X) === Function.prototype); console.log(Object.getPrototypeOf(Y) === X); console.log(Object.getPrototypeOf(new Y()) === Y.prototype)
  • 40. What’s the result of this code? 1. f, f, f 2. f, t, f 3. f, t, t 4. t, t, t class X {} class Y extends X {} console.log(Object.getPrototypeOf(X) === Function.prototype); console.log(Object.getPrototypeOf(Y) === X); console.log(Object.getPrototypeOf(new Y()) === Y.prototype)
  • 42. What’s the result of this code? 1. [] 2. [2,3,4,5,1] 3. [5,4,3,2,1] 4. Error let f = (x, ...y) => x?[...f(...y), x]:[]; let arr = [], i = 0; for (arr[i++] of f(1,2,3,4,5)) {} console.log(arr);
  • 43. What’s the result of this code? 1. [] 2. [2,3,4,5,1] 3. [5,4,3,2,1] 4. Error let f = (x, ...y) => x?[...f(...y), x]:[]; let arr = [], i = 0; for (arr[i++] of f(1,2,3,4,5)) {} console.log(arr);
  • 45. What’s the result of this code? 1. [1,2] 2. 3 3. 4 4. 5 let m = new Map([[1,2],[[1,2],3],[2,4],[3,5]]); console.log(m.get([...m][1][1]));
  • 46. What’s the result of this code? 1. [1,2] 2. 3 3. 4 4. 5 let m = new Map([[1,2],[[1,2],3],[2,4],[3,5]]); console.log(m.get([...m][1][1]));
  • 48. Thank You credits: ● Afonso Matos ● Juriy Zaytsev ● Dmitry Soshnikov ● Kim Gysen ● Ben Katz ● Sergey Bolshchikov