Тёмный

Javascript Coding Interview Questions- You Must Know Them 

Monsterlessons Academy
Подписаться 43 тыс.
Просмотров 16 тыс.
50% 1

Learn this 5 Javascript coding interview questions that I heard hundred times on Javascript interviews during last 10 years. They are focus on basic javascript knowledge this is why they are being asked so often.
TIMESTAMPS
0:00 Most popular Javascript coding interview questions
0:27 Closures
2:09 Cloning objects
3:59 Count vowels inside a string
8:32 Reverse each word in a sentence
9:25 Most common string
► CHECK MY COURSES - monsterlessons-academy.com/co...
FOLLOW ME
► TWITTER - / monster_lessons
RECOMMENDED VIDEOS
► My editor setup for web development - • Best Text Editor for W...
► Angular Tutorial for Beginners - • Angular Tutorial for B...
► Vue JS Crash Course - • Vue JS Crash Course fo...
► React Hooks Full Course - • React Hooks Tutorial f...
► Typescript Course for Beginners - • Typescript Crash Cours...
► Build a Todo App with Angular - • Build a Todo App With ...
► Creating custom select library - • Custom Javascript Drop...
► HTML Price comparison - • Practice CSS and HTML ...
► How to build Quiz with React hooks - • How to Build a Quiz Wi...
MY COURSES
► NestJS course - • Nest JS Project From S...
► Docker + Docker compose course - • Docker Compose Tutoria...
► Angular + NgRx course - • Angular Course 2021 - ...
► Vue + Vuex course - • Vue Course With Projec...
► React hooks course - • React Hooks tutorial b...

Опубликовано:

 

2 июл 2024

Поделиться:

Ссылка:

Скачать:

Готовим ссылку...

Добавить в:

Мой плейлист
Посмотреть позже
Комментарии : 53   
@Vivek-Nishad
@Vivek-Nishad Год назад
Object.assign and spread operator only work it you have a flat object like {a:1, b:2} But if you have nested object like {a:1,b:2,c:{d:3}} it will copy value of a and b but reference of c,d. so, if you want to copy nested objects you can use "structuredClone(obj)" or "JSON.parse(JSON.stringify(obj))"
@MonsterlessonsAcademy
@MonsterlessonsAcademy Год назад
You are totally right
@vishalupadhayay6391
@vishalupadhayay6391 11 месяцев назад
JSON.parse(JSON.stringify(obj)) will not work if the object has Arrays, Functions, and Date nested within. In such a scenario, we may have to use loadash or write one custom function to handle Arrays, Functions, and Date objects.
@SuperMatsumoto23
@SuperMatsumoto23 Год назад
I am sooo grateful for this video!! I am a junior developer currently preparing for my tech interviews, and some of this stuff was difficult to understand while just reading a text explanation. Thank you for showing these examples step by step, these have helped me get a better understanding of the theory. ♥
@MonsterlessonsAcademy
@MonsterlessonsAcademy Год назад
Glato to hear that. For interview preparation you might be interested in my Javascript interview questions course where you learn 56 different topics which fully cover Javascript. monsterlessons-academy.com/courses/javascript-interview-questions-coding-interview/
@AndreaDragotta
@AndreaDragotta 9 месяцев назад
Regarding the clone example, be aware that these are shallow copies (they do not work correctly when the object contains other objects). If you need a deep copy you should use the new "structuredClone" api or the usual trick with "JSON.parse(JSON.stringify(obj))"
@MonsterlessonsAcademy
@MonsterlessonsAcademy 9 месяцев назад
I have a full video about shallow comparison vs deep comparison. ru-vid.com/video/%D0%B2%D0%B8%D0%B4%D0%B5%D0%BE-re0G89DwOb8.htmlsi=snVLRIAqpU0_5OuN
@joeldaros
@joeldaros 2 года назад
I really like your videos, you get straight to the point. Please make more videos like this one!
@MonsterlessonsAcademy
@MonsterlessonsAcademy 2 года назад
I have now a full course of 59 coding exercises for Javascript interview. monsterlessons-academy.com/courses/javascript-interview-questions-coding-interview
@jonathanjohnson2785
@jonathanjohnson2785 Год назад
I don't have words to fully express my gratitude. Closures, cloning are things I found hard to understand but your style of teaching made everything so simple to understand. Thank you so much and all the best❤👍👍👏
@MonsterlessonsAcademy
@MonsterlessonsAcademy Год назад
Wow, thank you!
@n_fan329
@n_fan329 6 месяцев назад
for the last question..we can also do Object.entries(mapping).sort((a,b)=>a
@MonsterlessonsAcademy
@MonsterlessonsAcademy 6 месяцев назад
Sure there are different solutions to the same problem.
@clement2814
@clement2814 Год назад
Thank you, clear and concise
@MonsterlessonsAcademy
@MonsterlessonsAcademy Год назад
Glad it was helpful!
@yeti9537
@yeti9537 2 года назад
This is great. Thanks!
@MonsterlessonsAcademy
@MonsterlessonsAcademy 2 года назад
You're welcome!
@Shivam-sl4sp
@Shivam-sl4sp 7 месяцев назад
Thank you man !!
@MonsterlessonsAcademy
@MonsterlessonsAcademy 7 месяцев назад
You're welcome!
@bendevweb89
@bendevweb89 Год назад
As a Junior Developer your content helps me a lot to prepare for interviews and improve my logic Thank you very much 👍
@MonsterlessonsAcademy
@MonsterlessonsAcademy Год назад
Happy to hear that!
@mohammadyousuf1567
@mohammadyousuf1567 Год назад
I am addicted to your style of teaching .. : )
@MonsterlessonsAcademy
@MonsterlessonsAcademy Год назад
Glad to hear that!
@dmytro-skh
@dmytro-skh 11 месяцев назад
as for me reduce in the last example is too complicated to understand and debug. Nice for an interview but I would avoid such things in real code. I.e. if jun dev will have to work with that piece of code. In general good video, will look others on the channel too :)
@keneldridge
@keneldridge 11 месяцев назад
I like Object.keys(counterObject).sort((a,b) => { return a > b ? -1 : 0 })[0]
@orz5516
@orz5516 10 месяцев назад
In the findVowels i would expect a senior developer would do it with an object because with includes that complexity is much higher. With an object you can just iterate the string once and check each time if the char is a vowel with O(1) complexity
@MonsterlessonsAcademy
@MonsterlessonsAcademy 10 месяцев назад
There are different ways. Object is also not ideal. Regexr is easier that const vowelCount = str => { const regex = /[aeiouAEIOU]/g const s = str.match(regex) return s ? s.length : 0 }
@orz5516
@orz5516 10 месяцев назад
@@MonsterlessonsAcademy And thanks for the videos, you are great!
@doniaelfouly4142
@doniaelfouly4142 Год назад
thank you so much
@MonsterlessonsAcademy
@MonsterlessonsAcademy Год назад
Welcome 😊
@damienspectre4231
@damienspectre4231 Год назад
For the first problem - I understand closures and you are returning a fucntion within the parent function that returns the secret. but Im curious - why not return the secret string directly instead of within the child function? its a const and its private to the someFn() and cant be modified once declared...
@MonsterlessonsAcademy
@MonsterlessonsAcademy Год назад
It was just an example to show closures. environment variables should not be written in code in any case.
@sliceem88
@sliceem88 2 года назад
Best !
@MonsterlessonsAcademy
@MonsterlessonsAcademy 2 года назад
Thank you!
@jjjj5452
@jjjj5452 6 месяцев назад
Now just need to get an interview that asks one of these 5 questions...
@MonsterlessonsAcademy
@MonsterlessonsAcademy 6 месяцев назад
Good luck with that
@leojohn6702
@leojohn6702 9 месяцев назад
Quick question. Currently building my portfolio projects. But I have no knowledge of data structures and algorithms. Should i start training after my portfolio will be completed? Or prior the portfolio?
@MonsterlessonsAcademy
@MonsterlessonsAcademy 9 месяцев назад
Do a portfolio, CV and then improve your knowledge and add it. If you are a junior forget about data structures and algorithms at all. learn language and framework.
@OliaYarukhina
@OliaYarukhina 7 месяцев назад
Круто! Дякую! Цікаво звідки Ви, Олександре?)
@MonsterlessonsAcademy
@MonsterlessonsAcademy 7 месяцев назад
Originally Ukraine, last 8 years Germany
@testify7228
@testify7228 Год назад
Hi, For last question To get element which have max occurrence: After creating object, can we use .sort() nd do descending order based on Occurance nd then return first value from sorted object. Is it correct?
@MonsterlessonsAcademy
@MonsterlessonsAcademy Год назад
Hi, There are different ways to solve the same task.
@testify7228
@testify7228 Год назад
@@MonsterlessonsAcademy ok dude. Thanks for replay I saw ur 59 interview questions video course, really worth fir spending time in it
@dragosp.7635
@dragosp.7635 Год назад
at 3:50. I see it also work const clone=object. Is it a good practice?
@MonsterlessonsAcademy
@MonsterlessonsAcademy Год назад
It is not. You assign the reference to the object and not a new object with a value. Try to change property of clone and check the value of both objects.
@amitkrishna2412
@amitkrishna2412 Год назад
Hi , Is there a document or a list of such interview questions that you have maintained?which I can follow?
@MonsterlessonsAcademy
@MonsterlessonsAcademy Год назад
No I don't have something like this. But I have a full course with 57 Javascript questions which covers all knowledge that you need. monsterlessons-academy.com/courses/javascript-interview-questions-coding-interview
@cryptopinky2355
@cryptopinky2355 Год назад
Why do we write acc[1] and el[1]? what is the index for and why is it always 1?
@MonsterlessonsAcademy
@MonsterlessonsAcademy Год назад
Because there are just 2 elements in the array and we want to work with the second one.
@sameoldsteven9571
@sameoldsteven9571 9 месяцев назад
cant we solve the last question using Set?
@MonsterlessonsAcademy
@MonsterlessonsAcademy 9 месяцев назад
There are different solutions to the same question
@AndrewTSq
@AndrewTSq Год назад
The count vowels i just did [...str.toLowerCase().matchAll(/[aeiou]/g)].length not sure it was right, but worked on my examples :) fun questions :)
@MonsterlessonsAcademy
@MonsterlessonsAcademy Год назад
It's a totally valid solution. You passed :)
Далее
Javascript Interview Prep Course 2022
1:02:33
Просмотров 68 тыс.
5 Essential JavaScript Interview Questions
20:32
Просмотров 90 тыс.
JavaScript Interview questions everyone gets wrong
6:40
The React Interview Questions You need to Know
21:29
Просмотров 23 тыс.
Angular Interview Questions - Coding Interview 2023
49:13