Created
January 9, 2019 00:27
-
-
Save robertcoopercode/6486cdbf5efa9c108c96a5b8c7c2a348 to your computer and use it in GitHub Desktop.
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
function add(a: number, b: number) { | |
return a + b; | |
} | |
const result = add(2, 4); | |
result.toFixed(2); // ✅ | |
result.length; // ❌ - length is not a property of number types |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment