-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathJS-Interview.txt
More file actions
37 lines (26 loc) · 1.22 KB
/
Copy pathJS-Interview.txt
File metadata and controls
37 lines (26 loc) · 1.22 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
/************ INETRVIEW purpose links ***********/
* https://stackoverflow.com/questions/12797118/how-can-i-declare-optional-function-parameters-in-javascript
* https://www.youtube.com/watch?v=wFfkCaVTjZk&list=PL8p2I9GklV47SB9hjXCO1VsVAGPNu9Tgg
* https://www.youtube.com/watch?v=6Wzj7kxfRdI
* https://www.youtube.com/watch?v=qsNxdukPc2U
* https://www.youtube.com/watch?v=3qnrouysbG8
* https://www.youtube.com/watch?v=mhZWi9tSy44
* https://www.youtube.com/watch?v=mNJ06S60B9k
****************************************************************************************
Askable interview Qs:
--------------------------------------------------------------------------
* Swapping two string variables.
* Swapping two integers without 3rd variable.
* Write infinite loop using while, do while and for loops.
* What is REPL?
* Unique elements from Array
Ex:
function onlyUnique(value, index, self) {
return self.indexOf(value) === index;
}
// usage example:
var a = ['a', 1, 'a', 2, '1'];
var unique = a.filter( onlyUnique );
console.log(unique);
FMD -> https://medium.com/dailyjs/how-to-remove-array-duplicates-in-es6-5daa8789641c
* https://stackoverflow.com/questions/39827087/add-key-value-pair-to-all-objects-in-array/39827191