├── README.md
├── data.json
├── favicon.png
├── index.html
└── index.js
/README.md:
--------------------------------------------------------------------------------
1 | # Weird-JS
2 |
3 | JavaScript is a strange language with so many weird yet interesting parts (PS: I love JavaScript 💚).
4 | This website lists a collection of some of the weirdest JavaScript code snippets 😆
5 |
6 | ### Important Notes
7 |
8 | - This project is made for fun only, although some of these code snippets can appear in your next job interview 😛
9 | - The project is still under progress, I will be adding some new features and a lot of code snippets 🙃
10 |
11 | ### Technologies Used
12 |
13 | - HTML & JavaScript
14 | - TailwindCSS
15 | - Netlify.com (For Hosting)
16 | - Carbon.now.sh (For hosting code snippets)
17 |
18 | ### ScreenShot(s)
19 |
20 | 
21 |
--------------------------------------------------------------------------------
/data.json:
--------------------------------------------------------------------------------
1 | [
2 | {
3 | "title": "Type Coercion",
4 | "iframeURL": "VvzFLIutjukXmRLfy8Ih",
5 | "height": 378
6 | },
7 | {
8 | "title": "Comparing arrays",
9 | "iframeURL": "rCGx9BFEuo1jBrwd06Cj",
10 | "height": 380
11 | },
12 | {
13 | "title": "Array length",
14 | "iframeURL": "ZC7IV9ThHUOWvqrPoLVB",
15 | "height": 326
16 | },
17 | {
18 | "title": "Sort Array",
19 | "iframeURL": "mEGiHcmUpPmZizs3wHQv",
20 | "height": 380
21 | },
22 | {
23 | "title": "Deleting element of the Array",
24 | "iframeURL": "dJ16lVXyjAgldG6bIWjw",
25 | "height": 290
26 | }
27 | ]
28 |
--------------------------------------------------------------------------------
/favicon.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/rajat2502/weird-js/a99c1c237d846ee50721bf889fbc68f702b74d6a/favicon.png
--------------------------------------------------------------------------------
/index.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
56 | A list of some of the weirdest JavaScript code snippets 😆 57 |
58 | 90 |94 | More snippets will be added soon! 95 |
96 | 97 | 104 | 105 | 106 | 107 | 108 | 109 | -------------------------------------------------------------------------------- /index.js: -------------------------------------------------------------------------------- 1 | // logic to get data and add cards 2 | fetch('./data.json') 3 | .then((res) => res.json()) 4 | .then((res) => { 5 | const content = document.getElementById('content'); 6 | let data = ''; 7 | 8 | res.forEach((el) => { 9 | data += ` 10 |