Created
March 14, 2020 17:05
-
-
Save showlovezz/1998b967532303abc863a503c765de0c to your computer and use it in GitHub Desktop.
鼠年全馬鐵人挑戰 - 6-7
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Sample 1 | |
var value = 1; | |
console.log(typeof(value)); // 會得到資料型別為 number | |
// Sample 2 | |
var value = 'Taipei'; | |
console.log(typeof(value)); // 會得到資料型別為 string | |
// Sample 3 | |
var value = ['MOP', 'TRCK', 'PROLINK']; | |
console.log(typeof(value)); // 會得到資料型別為 object | |
// Sample 4 | |
var value = {x:1, y:2, z:3}; | |
console.log(typeof(value)); // 會得到資料型別為 object |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment