@ThapaTechnicalمنذ 3 سنواتconsole.log("a+b", a == b); Guy's the Output will be True Here ok bcz both the var b and a var are referencing the same Empty object in the memory. 7
@
@bibhasash7371منذ 2 سنواتIt's returning -1 because even if both of their key values are same they are not pointing to the same memory location. Objects are reference type that's id="hidden3" class="buttons"> why only way to achieve equality in array or object is to make shallow copy by which both of the objects will point to the same memory location ....وسعت1
@
@dhavalmakwana131منذ 3 سنواتBoom guys, Sir love from surat, today i purchased KTM RC 125 because of youThank you for awesome learning videos.. 4
@
@CodeWavewithShahHussainمنذ 3 سنواتSir font caret fire font use in vs theme plz batyien
@
@azizulhakimashik1154منذ 3 سنواتI was really looking for this. Thanks a lot
@
@rupokkoiry8500منذ 3 سنواتThapa Technical It's a very easy question because Object are reference type {} == {} => false and that's why indexOf gave -1, Need more hard Interview question 1
@
@ashwini4444منذ 3 سنوات@Vinod Sir , using console.log("a + c " + a == b) it has to print "a+c" true but in the program u have mentioned it is returning just id="hidden5" class="buttons"> false. i think here it is considering + a as + {} which is returning NaN and while comparing with b as holds an empty object so here NaN == {} output is false, have no clue why it is not printing a+c before, could you please explain ? console.log("a + c " , a == b) - output is a + c , true ....وسعت1
@
@nightcode.منذ 3 سنواتsir please make a project on some api using javascript. & what is cors and how to solve cors errors in javascript. (i had cors errors while fetching an api)
@
@siddiquiaffanمنذ 3 سنواتlet element = arrName[1]; console.log(arrName.indexOf(element)) // 1
@
@apoorvlele6257منذ 3 سنواتlet a = {}; let b = a; console.log(a == b) is returning true 1
@
@Aditya_473منذ 3 سنواتSir please i want to contact you. i have a big dream, i learned from you I want your help sir pls. Sir maybe your this help make my life sir. ❤
مقاطع الفيديو ذات الصلة على What Will Be the Output Objects In JavaScript Interview 16:
i think here it is considering + a as + {} which is returning NaN and while comparing with b as holds an empty object so here NaN == {} output is false, have no clue why it is not printing a+c before, could you please explain ?
console.log("a + c " , a == b) - output is a + c , true ....وسعت 1
console.log(arrName.indexOf(element))
// 1
I want your help sir pls. Sir maybe your this help make my life sir. ❤