Hi, You simplified it beautifully :) This is the only Video Tutorial I found where the comments section is also equally helpful :) Thanks. Keep creating :)
@@Techsithtube thanks sir for your response im in chennai i completed BE Mech but i have more interest in IT Technologies so i started learning programming and searching for IT After a Year pass i learned lot but no oppertunities for IT
hi techsith, you are amazing, you explain deep sh*t easily. requesting you to please make a video on JavaScript interview questions for 4 years to 8 years of experience. More precisely like make a video which cover all important topics , questions and answers and put title "before JavaScript interview". it will definitely help a lot of job seekers. cheers! send me your bank account details.
What a coincident I just finished recording the video about " Top 10 JavaScript Interview Question' I will release next Tuesday . I am also working on a video on how to prepare for Js interview.
Helo boss, in addition the operation it is okay 4 + '2' = 42 (number to string conversion). But in subtraction 4 - '2' = 2 (string to number conversion) Do You have any words for this..
+ can work on numbers and strings. as for strings + means concat two strings. but '-' works only on numbers so the conversation is done accordingly. I am glad that you have curiosity that means you have desire to learn ..
Hey bro, I had the exact same doubt a couple of days ago. The thing is, think this way: if numerical 4 was converted to a string, i.e, '4' then it would be '4' - '2'. I mean, how do you subtract a string from a string?? I mean, it doesn't make sense, right? So, the - or the subtraction operator function decides to convert or coerce the string 2 to numerical 2 and then subtract 4 from 2. That's why you get 2 as the output.
• Basically NaN and NaN are only one value of Number type. Let's say, let x = 2 * 'swastik' ; let y = 1 * 'techslith'; console.log(x) ; //NaN console.log(y) ; //NaN • Both x and y are pointing to the same primitive value NaN, to check we should use Same Value Equality. For example: console.log( Object.is(x, y) ); //true • Strict Equality results in false. console.log( x===y ); //false • So remember this: NaN === NaN results in false. Object.is(NaN, NaN) results in true.
Dear TechSith, I would request you to do some tutorials on Proxy, Design Patterns in Javascript, Json, Ajax in Javascript, Angular, Node, React frameworks would be really helpful in cracking the interviews
I am building a video to answer commonly asked JS interview questions. Will release next week . Good luck with the interview. I would love to know your experience with interviews like what kind of questions you get.
Few topics that I've received questions: apply vs call vs bind, destructuring, hoisting, var vs let vs const, BEM, function scope, Object create, Object assign
Hi,
You simplified it beautifully :)
This is the only Video Tutorial I found where the comments section is also equally helpful :)
Thanks. Keep creating :)
i really i like it bcz i understnd it well,thank u.
This is very much frequently ask questions.!! Very Well Explained...Cheers.
I know this stuff, but I give a like because I learned a lot,a lot from previous videos. always easily digestible content
Thanks for watching :)
Thanks for the tutorial! Notice at minute 9, should rather use &&.
Thanks for pointing it out. I will let users know.
Vikas
Vishal
i have to change all li :
script :- let li = document.querySelectorAll('li')
li.forEach(elm=>{
for(let i = 0; i
sir
im searching job for 1 year
till i does't get job
and no company is calling for interview can you
help me
Which contry are you in? Have you had any interviews lately? Maybe its the issue with the resume .
@@Techsithtube
thanks sir
for your response
im in chennai
i completed BE Mech
but i have more interest in IT Technologies
so i started learning programming
and searching for IT
After a Year pass i learned lot but no oppertunities for IT
You are awesome... Thanks for making your videos simple
hi techsith, you are amazing, you explain deep sh*t easily. requesting you to please make a video on JavaScript interview questions for 4 years to 8 years of experience. More precisely like make a video which cover all important topics , questions and answers and put title "before JavaScript interview". it will definitely help a lot of job seekers. cheers!
send me your bank account details.
What a coincident I just finished recording the video about " Top 10 JavaScript Interview Question' I will release next Tuesday . I am also working on a video on how to prepare for Js interview.
hurray !
I am from Java background and I am banging my head on my table, looking all this. Great video Thanks!
Best explanation
Thanks Shikhar.
Helo boss,
in addition the operation it is okay 4 + '2' = 42 (number to string conversion).
But in subtraction
4 - '2' = 2 (string to number conversion)
Do You have any words for this..
+ can work on numbers and strings. as for strings + means concat two strings. but '-' works only on numbers so the conversation is done accordingly.
I am glad that you have curiosity that means you have desire to learn ..
Hey bro,
I had the exact same doubt a couple of days ago. The thing is, think this way: if numerical 4 was converted to a string, i.e, '4' then it would be '4' - '2'. I mean, how do you subtract a string from a string?? I mean, it doesn't make sense, right? So, the - or the subtraction operator function decides to convert or coerce the string 2 to numerical 2 and then subtract 4 from 2. That's why you get 2 as the output.
except +, other operator works exact same as their behavior, I think i am right techsith
awesome video....I learn a lot..thanks
Thanks for watching!
techsith, very nice video, but you forgot about -0 ( Boolean(-0) === false )
Yes that is good one Nikita. Once i was asked this question in an interview.
keep teaching us
Thanks Bro
You are tooo good because of your examples i understand the logic..
THank for watching Arshard. Keep on learning!
Thank You
nice
Awesome
are you a Jin? make things magically easy
comments like this makes my day. Thanks for watching :)
sir i have a doubt that why its showing output as 6 when "3" * "2" is written and why not "33"
because it converts "3" into 3 and "2" into 2 so 3 * 2 = 6 gadhe!
I really like your videos. They are very easy to understand!
Very nicely explained
Thanks a lot for detailed explanation!
just starting to learn javascript. Thanks, the content was really straightforward yet v informative
Great to hear! Keep on learning!
furthermore, NaN === NaN is actually false. If you want to check whether a value is NaN, make sure to use the isNaN() function.
Good Point. thanks!
Justin Chong there is Object.is it will return true.
• Basically NaN and NaN are only one value of Number type.
Let's say,
let x = 2 * 'swastik' ;
let y = 1 * 'techslith';
console.log(x) ; //NaN
console.log(y) ; //NaN
• Both x and y are pointing to the same primitive value NaN, to check we should use Same Value Equality.
For example:
console.log( Object.is(x, y) ); //true
• Strict Equality results in false.
console.log( x===y ); //false
• So remember this:
NaN === NaN results in false.
Object.is(NaN, NaN) results in true.
Hi techsith, Please make tutorial on Async/Await in Js with example.
Will do , I am currently researching on it.
the type of NaN really scares me...
i know. I have seen someone using if( Number(x) === NaN) which is obvidously not going to work .
It scared me too..
@@Techsithtube Excellent explanation as always.....Yes I've tried using this way too..
Thank you ☺️
Thanks for watching Shilpa!
Great video, you earned a sub!
good explanation
Dear TechSith, I would request you to do some tutorials on Proxy, Design Patterns in Javascript, Json, Ajax in Javascript, Angular, Node, React frameworks would be really helpful in cracking the interviews
Sure I am working on react and proxy tutorials
Thank you so much
Hi techsith amazing sir , I need redux with react...
Sure I will focus on React Redux next. :)
thank you
thank you
4:16 i was thinkin in 2 + 1 + '2' -> 2(1+2) = 212, lmao
always go left to right. :)
Good video. I'm using your videos to prepare for next javascript interviews :) keep doing it. thanks
I am building a video to answer commonly asked JS interview questions. Will release next week . Good luck with the interview. I would love to know your experience with interviews like what kind of questions you get.
I'll share with you my experience there and the questions, I'll let you know! thanks!
Few topics that I've received questions: apply vs call vs bind, destructuring, hoisting, var vs let vs const, BEM, function scope, Object create, Object assign
what is BEM? I am very surprised to see Object.assign question . Do you mind sharing which company? only if you are comfortable. Thanks.
BEM is related to CSS (getbem.com/introduction/) I didn't know about it as well hahah