Skip to content

Commit 080274d

Browse files
aej11avvscode
authored andcommitted
Added questions (#537)
1 parent ede977f commit 080274d

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

src/questions/javascript-questions.md

+7
Original file line numberDiff line numberDiff line change
@@ -49,10 +49,17 @@ permalink: /questions/javascript-questions/index.html
4949
* What are the benefits of using `spread syntax` and how is it different from `rest syntax`?
5050
* How can you share code between files?
5151
* Why you might want to create static class members?
52+
* What is the difference between `while` and `do-while` loops in JavaScript?
5253

5354
## Coding questions
5455
* Make this work:
5556
```javascript
5657
duplicate([1,2,3,4,5]); // [1,2,3,4,5,1,2,3,4,5]
5758
```
5859
* 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`
60+
* What will be returned by each of these?
61+
```javascript
62+
console.log("hello" || "world")
63+
console.log("foo" && "bar")
64+
```
65+
* Write an immediately invoked function expression (IIFE)

0 commit comments

Comments
 (0)