Created
April 28, 2017 04:56
-
-
Save hrajchert/4596d89337e65dd50b6070b188b02cde 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
// TypeScript | |
// Tipos implicitos | |
let miNum = 9; | |
miNum = 10; | |
// Tipos explicitos | |
let miStr; | |
miStr = 'Hola' | |
// Funciones | |
function sumar (a, b) { | |
return a + b; | |
} | |
// Inferencia de tipos | |
const resultado = sumar(1, 1); | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment