Tag: undefined vs null

  • undefined vs null in javascript

    If you are from the background of a programming language like Java , you might feel that the way to represent a “no value” is through the value “null”. But Javascript has two ways to denote a “no value”. One is “undefined” Another is “null” “undefined” represents “no value” whereas “null” represents “no object” to…