Skip to content

Commit 9da03fd

Browse files
blackfalconroblarsen
authored andcommitted
adds ES6 style questions (h5bp#434)
* adds ES6 style questions * updates question based on feedback * updates question to be more clear as to intent * Rewording one question
1 parent 934a27a commit 9da03fd

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

README.md

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -132,7 +132,7 @@ This file contains a number of front-end interview questions that can be used wh
132132
```javascript
133133
duplicate([1,2,3,4,5]); // [1,2,3,4,5,1,2,3,4,5]
134134
```
135-
* Why is it called a Ternary expression, what does the word "Ternary" indicate?
135+
* Why is it called a Ternary operator, what does the word "Ternary" indicate?
136136
* What is `"use strict";`? what are the advantages and disadvantages to using it?
137137
* Create a for loop that iterates up to `100` while outputting **"fizz"** at multiples of `3`, **"buzz"** at multiples of `5` and **"fizzbuzz"** at multiples of `3` and `5`
138138
* Why is it, in general, a good idea to leave the global scope of a website as-is and never touch it?
@@ -153,6 +153,12 @@ duplicate([1,2,3,4,5]); // [1,2,3,4,5,1,2,3,4,5]
153153
* Explain the differences on the usage of `foo` between `function foo() {}` and `var foo = function() {}`
154154
* What are the differences between variables created using `let`, `var` or `const`?
155155
* What are the differences between ES6 class and ES5 function constructors?
156+
* Can you offer a use case for the new arrow `=>` function syntax? How does this new syntax differ from other functions?
157+
* What advantage is there for using the arrow syntax for a method in a constructor?
158+
* What is the definition of a higher-order function?
159+
* Can you give an example for destructuring an object or an array?
160+
* ES6 Template Literals offer a lot of flexibility in generating strings, can you give an example?
161+
* Can you give an example of a curry function and why this syntax offers an advantage?
156162

157163
#### Testing Questions:
158164

0 commit comments

Comments
 (0)