Skip to content
Y
yTube.SITE v8.0.4
media / worlds / tools / internet oddities
YouTube / video information

Junior vs Senior: Stop "Cannot read properties of undefined" ๐Ÿ˜Ž #shorts

Video information, playback and saved actions.

Junior vs Senior: Stop "Cannot read properties of undefined" ๐Ÿ˜Ž #shorts

Description: Same task, two developers. Which one are you? ๐Ÿ‘€

Task: get the user's city, but the address might be missing.

โŒ user.address.city โ†’ TypeError: Cannot read properties of undefined
๐Ÿ‘ถ Junior: if (user && user.address) {...} โ†’ 4 lines
๐Ÿ˜Ž Senior: user?.ad ...ย Read more
ย ย ย ย ย ย 
Videos related to "Junior vs Senior: Stop "Cannot read properties of undefined" ๐Ÿ˜Ž #shorts"

Related videos are temporarily unavailable.

Try again, or come back later.