# javascript/jquery判斷是否為null 或undefined ```javascript= var exp = undefined; if (typeof(exp) == "undefined") { alert("undefined"); } ``` typeof 返回的是字串,有六種結果:"number"、"string"、"boolean"、"object"、"function"、"undefined" ###### tags: jquery/javascript
×
Sign in
Email
Password
Forgot password
or
By clicking below, you agree to our
terms of service
.
Sign in via Facebook
Sign in via Twitter
Sign in via GitHub
Sign in via Dropbox
Sign in with Wallet
Wallet (
)
Connect another wallet
New to HackMD?
Sign up