Mock Technical Interview - Javascript Developer Entry Level

Mock Technical Interview - Javascript Developer Entry Level

Tech with Nader

1 год назад

494,824 Просмотров

Ссылки и html тэги не поддерживаются


Комментарии:

@JoeMilneEnglish
@JoeMilneEnglish - 30.11.2022 20:49

This is great! Props to Eli for pushing past the nervousness and settling in, it must've been extra hard for him knowing it was going to be recorded and uploaded to YT. I would LOVE more of these! I'd also love to volunteer to do a mock interview with you (me as the interviewee), if you'd like. I might not be quite at the point I'd need to be YET but I'd still love to do it!

Ответить
@forzajuve8088
@forzajuve8088 - 08.12.2023 22:05

after watching this video 1 year later I want to tell Eli that he will be a very cool engineer!

Ответить
@mak0t0san
@mak0t0san - 08.12.2023 16:35

These were interesting questions. Here's what I came up with, each solution is only one line.

For Q1:
const myString = 'Hello World';
console.log(Array.from(myString).map((str, idx) => (idx % 2 === 0 ? str.toUpperCase() : str.toLowerCase())).join(''));

OUTPUT: HeLlO WoRlD

For Q2:
const badHtml = '<div>Hello<div><div>Nice to meet you<div><p>Also works with other tags<p>';
let i = 0;
console.log(badHtml.replace(/<(\w+)>/g, (match, grp) => i++ % 2 == 0 ? `<${grp}>` : `</${grp}>`));

OUTPUT: <div>Hello</div><div>Nice to meet you</div><p>Also works with other tags</p>

Ответить
@hassansyed6087
@hassansyed6087 - 07.12.2023 01:29

Hey Nader & Eli,
Thank you so much for this detailed interview.
Just a question for Nader.
How long did it take for JS concepts to really cement in your mind and you be able to just draw from memory/learning?
I am 6 months in to JS and some concepts are still a bit hazy while others have solidified
Thanks !

Ответить
@LucianoClassicalGuitar
@LucianoClassicalGuitar - 06.12.2023 22:21

We need more of these

Ответить
@raksmi1903
@raksmi1903 - 06.12.2023 21:35

This guy is me in an interview 😅 I wish the company could just hire me to work for free so they can see how I do since I am not good with interviews

Ответить
@justsomesaltyboi8716
@justsomesaltyboi8716 - 06.12.2023 02:57

idk why I'm here as a 0 trying to understand what is being talked about in here. I am in college in a general studies major and I'm curious about getting into the computer science, more specifically, software engineer with a side of cybersecurity (blue/red hat) interests. The issue I find myself in is this: "Do I have a passion for the topic?" well... I honestly don't know. I don't really conceptually understand the ideas of passion because I don't really feel any passion for anything. Maybe I do but I don't see it? or maybe at the very least recognize it? I don't know... very cool video though, I watched it to the halfway point to easy section, because I don't know these terminologies! lol don't want to overload myself too quick, I will get burnt out. Awesome to see this practice being done.

Ответить
@dawnjones8476
@dawnjones8476 - 05.12.2023 04:19

Yo… if i answered all answer with ease and precision, can i potentially get an IT job?!

Ответить
@Aki-hs3sg
@Aki-hs3sg - 04.12.2023 17:12

3rd div tag shouldn't be closed on the last test case. But hats off to Eli! Great job!

Ответить
@ananthdev2388
@ananthdev2388 - 01.12.2023 01:08

string question my attempt:

function cap(s) {
return s.split("").map((x, i) => i % 2 === 0 ? x.toUpperCase() : x).join("");

}

Ответить
@Princesspeadc
@Princesspeadc - 30.11.2023 19:23

I appreciate this so much! Thanks Eli for your vulnerability. I hope this opens more doors for you. 😊

Ответить
@danieljoaquinsegoviacorona1734
@danieljoaquinsegoviacorona1734 - 23.11.2023 07:29

This is an example of someone who did not re-read his notes, or doesn't have notes to begin with, you should always study writing concepts in your own words and study that hard, because its information your brain created, so it's easier for you to recall, also, you need more confidence here, you should know what your tools are and what they are for, imagine if you asked a baker about how ovens work and he doesn't even know that they store heat. Short concise answers will give you the job, if you don't get it on the first try... nobody does, just study, know your shit and go on confident that you know your shit, and if you don't study harder and try again. BTW, I'm a software developer who started his career at 35 and started school at 31... and if you ask me what an array is, I would simply say, A mechanism to temporarily store sequential indexed repeatable objects.

Ответить
@rgc9090
@rgc9090 - 23.11.2023 06:11

bro on left is kinda hot ngl

Ответить
@dangelos3143
@dangelos3143 - 22.11.2023 05:16

What else can he do with an array?🤔

Ответить
@Gerinse
@Gerinse - 21.11.2023 10:52

Eli, you have my utmost respect for this. Even though you know it is technically not a real interview, you put forth your best effort and explained your process in an incredibly easy to understand way. I'm also 29 and moving into the web development side of things.

Ответить
@rockstarseera7317
@rockstarseera7317 - 18.11.2023 17:17

I have done the last question sir but it was some large and confusion approach for the problem.
i just did it by counting number of div's and halfed it and again by comparing and decreasing the other count..... finally it worked but i don't think it is a good approach that i have done sooooo... Does the interviewer like's that or he gonna ask to short the code?
Even though it was a great interview 💯.
You just put that guy in a full of stress and tension that i to felt that 😨

Ответить
@thetheedesk
@thetheedesk - 17.11.2023 11:43

im doing now 10 months f full stack developer and now we are on JavaScript, I feel like a complete idiot, but that is alright. And this video even I couldnt follow it was nice to see the thinking process on how take you problems on. I'm very gratefull for this. Greetings from Belgium

Ответить
@rocklerock495
@rocklerock495 - 17.11.2023 10:13

I have not yet done a coding interview at all 😂 and still got the job. This is good to know in my future jobs

Ответить
@TheStrategist314
@TheStrategist314 - 13.11.2023 18:34

Props for the guy doing it. The only piece of advice I would give is to be patient with yourself. If you don't know something...it's truly ok to say hey I don't know that specifically...but here's what I do know...and how I can use that to figure it out. Where a lot of people fail in interviews...is they try to sell skills they don't have and comes off as a salesperson rather than a subject matter student.

Ответить
@6a-cr6mg
@6a-cr6mg - 13.11.2023 16:08

Thanks for the good website hosting knowledge! Ive skilled GoDady and HostGator, but Cloudways with TST20 couppon is the best cash saver.

Ответить
@natalie8NB
@natalie8NB - 13.11.2023 01:41

Eli - great to be you. You demonstrate an 'interested oriented' mindset; dopamine driven, with limited patience. Great for dev - when focused/hyperfocused. Suggest stimulant evaluation - though likely you've tried before

Ответить
@BB_The_Impaler
@BB_The_Impaler - 12.11.2023 01:58

Rofl, JR Dev interviews be like : Given an array of integers, write a JavaScript function that efficiently finds the single number that appears an odd number of times in the array. You must solve this using bit manipulation (specifically bit shifting). Assume that there is exactly one such number and that all other numbers appear an even number of times...and have 3-5 years experience for this shit tier paying job.

Ответить
@foxiuc1337
@foxiuc1337 - 11.11.2023 05:53

Wtf did I just watch, done all questions in 10min. well everyone starts somewhere 😆

Ответить
@DexterMorgan
@DexterMorgan - 10.11.2023 00:35

I followed along on the last question, and here's what I ended up with, who knows if it's good or bad /shrug lol

const fixDivs = (input) => {
let counter = 0
let inputArray = input.split('')

return inputArray
.map((value, i) => {
if (inputArray[i] === '<') {
const tag = inputArray.slice(i + 1, i + 4).join('')

if (tag === 'div') {
switch (counter) {
case 0:
counter++
break
case 1:
value = inputArray[i] + '/'
counter--
break
}
}

if (`${tag}v` === '/div' && counter === 1) counter--
}

return value
})
.join('')
}

Ответить
@romanbrandt7986
@romanbrandt7986 - 09.11.2023 16:52

How to get to your Interview? ))

Ответить
@yasin4591
@yasin4591 - 09.11.2023 04:35

Thanks for sharing

Ответить
@coder0015
@coder0015 - 05.11.2023 16:32

I'm new to coding so I know shit about it

For the 1st challenge,
Could we have written "i+2 = toUpperCase()"
Instead of the whole if/else loop!!?

Again, it's just something that came to my mind...so I might be wrong...I'm just learning JS

Ответить
@yassinezaza7118
@yassinezaza7118 - 04.11.2023 15:24

good job , the last solution still has a bug the final answer is <div></div><p>hello</p></div></div> which is not right

Ответить
@Jason-jf2ym
@Jason-jf2ym - 03.11.2023 20:42

too much relatable

Ответить
@eugenesternin6039
@eugenesternin6039 - 02.11.2023 01:44

const f = (s) => {
let arr = s.split('');
const res = [];
let isDivPassed = false;
for (let i = 0; i <= s.length; i++) {
if (s.slice(i, i + 5) === "<div>") {
if (isDivPassed) {
res.push("</div>");
i += 5;
isDivPassed = false;
} else {
res.push(s[i]);
isDivPassed = true;
}
} else res.push(s[i]);
}
return res.join('');

Ответить
@n_fan329
@n_fan329 - 01.11.2023 18:26

second question without edge cases : str.replace(/<div>\w+/gi,val=>val+'</div>')

Ответить
@dainsleif3122
@dainsleif3122 - 01.11.2023 14:38

is the interviewer also a junior?

Ответить
@jacksparrow4628
@jacksparrow4628 - 31.10.2023 18:45

sir i am a beginner, i tried to solve the second one by myself, so can you please provide me feedback and also suggestions if possible.
function closeDiv(html) {
let splitedHtml = html.split("<div>");
let closedDivArray = [];
let element = "";

for (let i = 0; i < splitedHtml.length; i++) {
element = splitedHtml[i];
if (i % 2 !== 0) {
closedDivArray.push(`<div>${element}</div>`);
} else {
closedDivArray.push(element);
}
}
console.log(closedDivArray.join(""));
}
closeDiv(
"<div><p>this is a<div>paragraph</p><div><p>this is a new <div>paragraph</p><div>another div<div>"
);

Ответить
@chaseaalbritton
@chaseaalbritton - 31.10.2023 06:18

Amazing video and great job Eli!

Ответить
@xeronate1267
@xeronate1267 - 30.10.2023 22:51

This was an amazing video to sit down and watch being a beginner learner into coding myself. Watching this whole video gave me a lot tips on how to tackle problems and how to go through it step by step to get a better understanding of the question given. By questioning/answering edge cases and giving examples of what you want the program to actually run/spit out. I, myself, never really went through this process and just went straight into the coding aspect and try work my way through that which made it really hard on me, decreasing my confidence.
I give huge props to Eli because he came into this mock interview not prepared at all. You can tell Eli was nervous by the way he laughs and how he moving around a lot and wasn't really still at first. But after seeing you giving him the guidance and patiently talking to him through the process, Eli became more a lot confident and was able to work solving the code faster by understanding it.
The first coding problem was was done beautifully and I was able to understand it every step of the way. But the second coding question became a lot hard to follow due to the second if statement and understanding where to put each variable within the various brackets. My brain would always explode when I see more than 20 lines of code and would constantly have to run myself through the code repeatedly to understand it again.
Also, I really enjoyed on how Nader kept a calm/cheerful mood when talking to Eli even after seeing his nervousness when working through the problems by giving him reassurance on how he can approach things whenever Eli was stuck. I feel like I, myself, would have a better understanding If I had someone I can talk to and ask a lot of questions if I ever get stuck on how to approach things or ask how certain code works.

Ответить
@deky9171
@deky9171 - 28.10.2023 17:52

UwU

Ответить
@ctchisholm
@ctchisholm - 28.10.2023 01:03

here's the solution i came up with for the second problem:

function closeDivs(html) {
// start by finding all the locations of <div> tag in the string
const divIndices = [];
let index = -1;
do {
index = html.indexOf('<div>', index+1);
if(index !== -1) {
divIndices.push(index);
}

} while(index !== -1);

// now we can interate over all our indicies of <div>,and insert '/' for every second div
let arr = Array.from(html);
let indexOffset = 0; // splice will modify array, every time we do this we need to insert the next one space further
for(let i=0; i<divIndices.length; i++) {
if(i%2 === 1) {
arr.splice(divIndices[i]+1+indexOffset,0,'/');
indexOffset += 1;
}
}

return arr.join('');
}

Ответить
@alaacher2596
@alaacher2596 - 26.10.2023 21:42

hi.
hahah.
he is old and he is 26. What about me and I am 45 and just started learning.

Ответить
@bighof2581
@bighof2581 - 25.10.2023 10:14

Love this content. Gives us aspiring developers an idea of what to expect in a real interview!

Ответить
@margaret8114
@margaret8114 - 25.10.2023 00:08

Wow! So helpful! Thanks

Ответить
@yahyaelyamine5617
@yahyaelyamine5617 - 24.10.2023 18:05

If the questions were like this in the current market interviews, I would have smashed them like coconuts

Ответить
@im-anomalies
@im-anomalies - 22.10.2023 17:55

I like how the interviewer is supportive

Ответить
@psMens
@psMens - 20.10.2023 12:26

function closeDiv(html) {
let correctedStringHTML = "";
let yesFounded = false;
for(let i = 0; i < html.length; i++){
if(yesFounded){
if(`<${html[i + 1]}${html[i + 2]}${html[i + 3]}>` === "<div>"){
correctedStringHTML += "</div>";
yesFounded = false;
i = i + 4;
continue;
}
}
if(html[i] === "<"){
if(`<${html[i + 1]}${html[i + 2]}${html[i + 3]}>` === "<div>"){
yesFounded = true;
correctedStringHTML += "<div>";
i = i + 4;
}else{

correctedStringHTML += html[i];
}
}else{
correctedStringHTML += html[i];
}
};
return correctedStringHTML;
}
closeDiv('<div><p>hello there<div></p><div><div><p>hello<i><div></i><div>');
in just five minutes

Ответить
@michael_rayz
@michael_rayz - 19.10.2023 15:02

No one is talking about how Nader has manly deep sweet voie

Ответить
@nouarchami9007
@nouarchami9007 - 17.10.2023 08:00

if opening and closing tag are correct normaly the code let some thing correct !!
it seeems you consontrate oly an the second ones...
tell me if im wrong..THANKS

Ответить
@nouarchami9007
@nouarchami9007 - 17.10.2023 07:48

there are a mistake ....
look you see the opening div has a slache ( / )!!!
it s not correcte bro because the modelus of ........
you see the </div></div> at the end..REALY STRANG

Ответить
@omarzeidan5798
@omarzeidan5798 - 17.10.2023 02:19

How about this for the first question?

`string.split("").map( (el, i) => i % 2 === 0 ? el.toUpperCase() : el.toLowerCase ).join("")`

Or if you don't want to lowerCase then

`string.split("").map( (el, i) => i % 2 === 0 ? el.toUpperCase() : el ).join("")`

Also, would you have benefited from `charAt()` in your for loop?

Ответить
@savanaheatsbananas
@savanaheatsbananas - 15.10.2023 08:00

This is what I needed to see this gives me a peace of mind

Ответить