1
const a = 'a'
const b = [a]
a === b[0] // true

is a and b[0] has different address? i learned === only compare value and values type copy of primitive type in javascript is deep copy

i want know === is compare real memory address?? and is there any way can get a memory address in javascript??

i tried to find way but i can't

please let me know your wise have a nice day!!

2

0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.