1
1
#JavaScript-snippets
2
2
> Click:star : if you like the project. Pull Request are highly appreciated. Follow us[ Facebook] ( https://www.facebook.com/snippetsJS ) on Facebook.
3
- <img src="Logo.png" alt="JS snippets logo">
4
-
5
-
6
3
7
4
###Table of Contents
8
5
| No.| Questions|
9
6
|---- | ---------
10
- | 1| [ What are the possible ways to create objects in JavaScript? ] ( #How-to-generate-a-random-number-in-a-given-range ) |
11
- | 2| [ What is prototype chain? ] ( #what-is-prototype-chain ) |
7
+ | 1| [ Generate a random number in a given range ] ( #How-to-generate-a-random-number-in-a-given-range ) |
8
+ | 2| [ Find the difference between two arrays ] ( #How-to-find-the-difference-between-two-arrays ) |
12
9
13
10
14
11
** [ ⬆ Back to Top] ( #table-of-contents ) **
@@ -31,8 +28,8 @@ const getRandomNumberInclusive =(min, max)=> {
31
28
getRandomNumberInclusive (2 ,10 );
32
29
```
33
30
34
- # How tofind the difference between two arrays.
35
-
31
+ ** [ ⬆ Back toTop ] ( #table-of-contents ) **
32
+ ### How to find the difference between two arrays
36
33
37
34
``` javascript
38
35
const firstArr = [5 ,2 ,1 ];