Last active
March 12, 2017 14:10
-
-
Save bamossza/f623404ee6f45339531c8c0846aa04b2 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 name: string = "bamossza"; | |
name = 2; // เออเร่อเพราะว่าไม่ใช่ string | |
Error: cannot assign a `number` to a `string` | |
.. | |
// แต่หากเราแปลงให้เป็น JavaScript ก็จะได้แบบนี้ | |
.. | |
var name = "bamossza"; | |
name = 2; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment