{"id":19694125,"url":"https://github.com/agent-006/javascriptinterview","last_synced_at":"2026-06-05T20:31:21.319Z","repository":{"id":214642123,"uuid":"736230348","full_name":"Agent-006/JavaScriptInterview","owner":"Agent-006","description":null,"archived":false,"fork":false,"pushed_at":"2024-01-14T15:04:54.000Z","size":57,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-11-21T20:04:04.772Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Agent-006.png","metadata":{"files":{"readme":"readme.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2023-12-27T10:35:13.000Z","updated_at":"2023-12-27T10:36:53.000Z","dependencies_parsed_at":"2024-01-14T16:26:51.091Z","dependency_job_id":null,"html_url":"https://github.com/Agent-006/JavaScriptInterview","commit_stats":null,"previous_names":["agent-006/javascriptinterview"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/Agent-006/JavaScriptInterview","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Agent-006%2FJavaScriptInterview","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Agent-006%2FJavaScriptInterview/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Agent-006%2FJavaScriptInterview/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Agent-006%2FJavaScriptInterview/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Agent-006","download_url":"https://codeload.github.com/Agent-006/JavaScriptInterview/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Agent-006%2FJavaScriptInterview/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":33959537,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-06-05T02:00:06.157Z","response_time":120,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-11-11T19:20:23.795Z","updated_at":"2026-06-05T20:31:21.292Z","avatar_url":"https://github.com/Agent-006.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"JavaScript\n\n📝Note: 🎯 --\u003e means basic topics.\n         🎯 ---\u003e means advanced topics \n\n\n\n🎯 word vs keyword ✅\n\n--\u003e Anything that doesn't have it's meaning in JavaScript is known as a 'word'.\n   Anything that have some meaning in JavaScript is known as a 'keyword'.\n\n\n\n🎯 var vs const vs let ✅\n\n--\u003e \n🎈 variable - Is is a container which is used to store data in \n                   programming or code that may change in future (code\n                   mein koi bhi  data store karne ke liye jiska use hota hai\n                   use kahte hai variable).\n\n⭐Exmp:\n\n        var dulha = \"Lab\";\n        var dulhan = \"Laby\";\n\n🎈 constant - It is also used for storing data but, the data can't be changed in future.\n\n⭐Exmp: \n\n        const dulha = \"Lab\";\n        const dulhan = \"Laby\";\n\n🎈 let - It is also used for storing data.\n\n⭐Exmp: \n\n        let dulha = \"Lab\";\n        let dulhan = \"Laby\";\n\n        dulha = \"Haraamzada\"; // This will throw an error if const is used.\n        console.log(dulha + \" weds \" + dulhan);\n\n\n\n🎯 the difference ✅\n\n---\u003e There are two versions of JavaScript ES5 and ES6. ES5 is the old version of JavaScript\n      which only have 'var'. In ES6 we have both 'let' and 'const'. \n\n📝Note: We can use both ES5 and ES6 together and at the same time.\n\n🎈 var is present in old (ES5) JavaScript\\\n🎈 var is function scoped - 'var' can be anywhere in it's parent function ('var' apne parent\n                             function me kahi bhi use ho sakta hai).\n\n⭐Exmp: \n\n        function abcd() {\n            for (var i = 1; i \u003c 12; i++) {\n                console.log(i); // This will print 1 to 11\n            }\n            console.log(i); // As 'var' is function scoped, 'var' can be used in it's parent function. So, now 'i' holds the value '12' and it will print '12'\n        }\n\n        abcd(); \n\n👉 The final output will be: 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12\n\n🎈 var adds itself to the window object \n\n⭐Exmp:      \n\n        var a = 12; // Open inspect element, then console and type window, then unfold the window object\n\n🎈 let \u0026 const is present in new JavaScript\n🎈 let \u0026 const is braces scoped \n\n⭐Exmp:\n\n        function abcd() {\n            for (let i = 0; i \u003c 12; i++) {\n                console.log(i); // This will print 1 to 11\n            }\n            // console.log(i); // This will throw an error as 'i' is not defined\n        }\n\n        abcd();\n\n👉 The final output will be: 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11\n\n🎈 let \u0026 const doesn't adds itself to the window object\n\n⭐Exmp:      \n\n        let a = 12; // Open inspect element, then console and type window, then unfold the window object\n\n        const b = 12; // Open inspect element, then console and type window, then unfold the window object\n           \n        \n        \n🎯 window object ✅\n\n---\u003e In JavaScript there are many features that we can use, there are features that we can use\n     but, they are not in JavaScript but, JavaScript can use those features through window.\\\n    🌟window is a box of features given by the browser to use with JavaScript.\n\n\n\n\n\n\n\n\n-- browser context api\n-- stack\n-- heap memory\n-- execution context\n-- lexical environment\n-hoisting\n-types in js\n-- how to copy reference values\n-conditionals\n-if else else-if\n-- truthy vs falsy\n-- switch\n-loops\n-for while\n--foreach forin forof do-while\n-functions\n--callback funcs\n--what is first class funcs\n-params, arguments\n-arrays\n-push pop shift unshift\n--how arrays are made behind the scenes\n--why we can make negaitve indexes arrays in js\n--practice questions and scenarios\n-objects\n-props vs methods\n-updating object porps\n--how to delete object prop\n--practice questions, scenarios\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fagent-006%2Fjavascriptinterview","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fagent-006%2Fjavascriptinterview","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fagent-006%2Fjavascriptinterview/lists"}