codesONLY / JavaScriptONLY

Knowledge Resource of core fundamentals of JavaScript explained in simple way!
382 stars 181 forks source link

replace undefined with err x is not defined #11

Open Dev-anuj opened 3 years ago

Dev-anuj commented 3 years ago

// code example 5

getName(); console.log(x); console.log(getName)

function getName(){ console.log("Namaste JavaScript"); }

Output:

Namaste JavaScript

undefined

f getName(){ console.log("Namaste JavaScript); }

**for x it will come to err x is not defined. please check epi 3 notes

assign it to me i will love to contribute.**

sohamsshah commented 3 years ago

Thanks for pointing this out! Please refer the comments on #4 as well while tackling this.