What Will Be the Output ??? Objects In JavaScript Interview #16

preview_player
Показать описание


************* Must Watch Videos For Web Development *************



😍😍 Check Programming Videos in One Hour👇

*********** CLICK HERE TO WATCH *************

***************** MUST WATCH VIDEOS ******************

Make Website Responsive Using Media Queries in One Video in Hindi | Web Design Tutorial in Hindi

Guys, Please support my channel by SUBSCRIBE to my channel and share my videos in your Social Network TimeLines.

Don't Forget to Follow me on all Social Network,

Рекомендации по теме
Комментарии
Автор

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.

ThapaTechnical
Автор

Boom guys, Sir love from surat, today i purchased KTM RC 125 because of you🥰😍Thank you for awesome learning videos..

dhavalmakwana
Автор

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 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

bibhasash
Автор

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

rupokkoiry
Автор

I was really really looking for this. Thanks a lot

azizulhakimashik
Автор

Sir font caret fire font use in vs theme plz batyien

CodeWavewithShahHussain
Автор

@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 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

ashwini
Автор

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)

nightcode.
Автор

let a = {}; let b = a; console.log(a == b) is returning true

apoorvlele
Автор

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. 🥺😭❤

Aditya_