Skip to content

Instantly share code, notes, and snippets.

@showlovezz
Created March 14, 2020 17:05
Show Gist options
  • Save showlovezz/1998b967532303abc863a503c765de0c to your computer and use it in GitHub Desktop.
Save showlovezz/1998b967532303abc863a503c765de0c to your computer and use it in GitHub Desktop.
鼠年全馬鐵人挑戰 - 6-7
// 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