Last active
March 12, 2017 11:50
-
-
Save bamossza/3d74ea171ff6d8488ffa58973c561c4a to your computer and use it in GitHub Desktop.
This file contains 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
let student: [string, number] | |
student = ["bamossza", 1] | |
//แต่ถ้าแบบนี้ผิดเพราะว่าระบุค่าไม่ถูกต้องตามชนิดที่กำหนด | |
student = [1 , "bamossza"] // Type 'number' is not assignable to type 'string'. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment