added undefined & null & use of semicolon