{"id":21730219,"url":"https://github.com/sumanbiswas7/javascript-interview","last_synced_at":"2026-05-18T00:33:18.165Z","repository":{"id":54403267,"uuid":"521703112","full_name":"sumanbiswas7/javascript-interview","owner":"sumanbiswas7","description":"javascript interview questions, answers and resources written in typescript :)","archived":false,"fork":false,"pushed_at":"2022-08-08T03:50:09.000Z","size":10,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-07-06T20:44:56.592Z","etag":null,"topics":["interview","javascipt"],"latest_commit_sha":null,"homepage":"","language":"TypeScript","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/sumanbiswas7.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}},"created_at":"2022-08-05T16:16:39.000Z","updated_at":"2022-08-08T03:44:02.000Z","dependencies_parsed_at":"2022-08-13T14:40:09.959Z","dependency_job_id":null,"html_url":"https://github.com/sumanbiswas7/javascript-interview","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/sumanbiswas7/javascript-interview","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sumanbiswas7%2Fjavascript-interview","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sumanbiswas7%2Fjavascript-interview/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sumanbiswas7%2Fjavascript-interview/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sumanbiswas7%2Fjavascript-interview/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/sumanbiswas7","download_url":"https://codeload.github.com/sumanbiswas7/javascript-interview/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sumanbiswas7%2Fjavascript-interview/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":33160485,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-17T22:39:12.733Z","status":"ssl_error","status_checked_at":"2026-05-17T22:39:10.741Z","response_time":107,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"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":["interview","javascipt"],"created_at":"2024-11-26T04:13:46.254Z","updated_at":"2026-05-18T00:33:18.147Z","avatar_url":"https://github.com/sumanbiswas7.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Javascript Interview\n\nbasic to intermediate level questions and answers, resources to prepare for javascript interview\n\n## Table of contents\n\n| No  | Core concepts                                                             |\n| --- | ------------------------------------------------------------------------- |\n| 1   | [Check if the user exists in the given object](#Check-if-the-user-exists) |\n| 2   | [Explain \"this\" keyword in javascript](#this-keyword-in-javascript)       |\n| 3   | [Regular expressions](#regular-expression-in-javascript)                  |\n\n## Answers\n\n### Check if the user exists\n\n```javascript\nconst users = [\n  { name: \"paul\", age: 22 },\n  { name: \"jerry\", age: 18 },\n  { name: \"rita\", age: 25 },\n  { name: \"max\", age: 21 },\n  { name: \"harry\", age: 21 },\n];\n```\n\nto find if a given user exists in the users array we could use filter, loops, etc. but we only need true if the user exists or false if not. array.some() function can be the best option for dealing with this senario.\n\n```javascript\nusers.some((user) =\u003e user.name === \"paul\"); //true\nusers.some((user) =\u003e user.name === \"cillian\"); //false\n```\n\n\u003cbr/\u003e**[⬆ Back to Top](#table-of-contents)**\n\n### This keyword in javascript\n\nin javascript this keyword represents the execution context, basically, the object that's calling the func, there are so many caveats to keep in mind please go through these articles below to get a good understanding of this.\n\n1. [Beginner explaination of this](https://www.youtube.com/watch?v=gvicrj31JOM)\n2. [Intermediate explanation of this](https://dmitripavlutin.com/gentle-explanation-of-this-in-javascript/)\n\n\u003cbr/\u003e**[⬆ Back to Top](#table-of-contents)**\n\n### Regular expression in javascript\n\nRegular expressions are patterns used to match character combinations in strings. In JavaScript, regular expressions are also objects. go through these resources below to get a good idea of Regex.\n\n1. [Youtube video of Regex](https://www.youtube.com/watch?v=rhzKDrUiJVk\u0026t=573s)\n2. [Documentation Regex](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Guide/Regular_Expressions)\n\n\u003cbr/\u003e**[⬆ Back to Top](#table-of-contents)**\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsumanbiswas7%2Fjavascript-interview","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsumanbiswas7%2Fjavascript-interview","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsumanbiswas7%2Fjavascript-interview/lists"}