ECMAScript 2015+
Question #33
A) Destructuring an array
B) Closures
C) Object literal shorthand property name
D) Object literal computed property name
Question #34
A)
#X() { }
B)
static X() { }
C)
X() static { }
D) You can’t! JavaScript classes don’t support any static method syntax.
Question #35
A) pudding
B) pie
C) The code will throw an error
D) undefined
Question #36
A)
'This is a ${'test'}'
B)
"This is a ${"test"}"
C)
`This is a ${'test'}`
D)
'This is a test'
Question #37
A) Eliminates some JavaScript silent errors by changing them to throw errors.
B) Fixes mistakes that make it difficult for JavaScript engines to perform optimizations
C) Prohibits some syntax likely to be defined in future versions of the language
D) All of the above
Question #38
A) const {4: fourth} = [10, 20, 30, 40];
B) const [first, second, fourth] = [10, 20, 30, 40];
C) const {first, second,, fourth} = [10, 20, 30, 40];
D) const [first, second,, fourth] = [10, 20, 30, 40];
Question #39
A) Async/Await function
B) Promise function
C) Arrow function
D) Generator function
Question #40
A) import lodash as _ from 'lodash';
B) import _ from 'lodash';
C) import 'lodash' as _;
D) import '_' from 'lodash';