Here's a curated list of 10 resources to ace your next JavaScript interview. For learning, javascript.info is highly recommended. If you have encountered any coding problems in the JS interview, please raise a PR to add your solution to examples/
folder. Please refer to the contributing section to learn more.
For any queries, feel free to reach out to me — topmate.io/vinitshahdeo or Twitter.
- Namastey JavaScript Course - An awesome playlist of advanced concepts in JS (Must watch)
- FAQs for JavaScript Interviews (Must do)
- Checkout
examples/
for coding problems in JS
- Clone the repository and create a new branch.
git clone https://github.com/vinitshahdeo/inspirational-quotes.git
git checkout -b feature/<problem-name>
- Head to
examples
folder
cd examples
touch yourFileName.js
- Add your code to
yourFileName.js
- Ensure that the problem statement is added as a comment in the top of the file.
- Add proper comments (JSDocs) wherever needed.
- Below is a sample code snippet
/**
*
* Flatten the given array
* Input: [1,2,[3,4,[5,6]],7,8,[9,10]]
* Output: [1,2,3,4,5,6,7,8,9,10]
*
*/
const flattenArray = (arr) => {
let flattenedArray = [];
arr.forEach((item) => {
if (Array.isArray(item))
flattenedArray.push(...flattenArray(item));
else
flattenedArray.push(item);
});
return flattenedArray;
};
console.log(flattenArray([1, 2, [3, 4, [5, 6, 7]], 8]));
- Please raise a pull request to add your code-snippet.
- Provide proper PR title and description.
- Sit and relax! You've made your contribution. 🎉
Initially I have curated these resources for my mentees, but it's now a community-led initiative to gather best resources to ace any JS interview. If you like it, kindly consider leaving a star or buying me a coffee! Tweet to spread a word.