Created
May 16, 2022 14:17
-
-
Save reisdev/2890332034cd80214b477c92d445d814 to your computer and use it in GitHub Desktop.
Constantes em Swift
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 helloWorld = "Hello world!" | |
// Tentando atribuir um novo valor: | |
helloWorld = "Novo valor" | |
/* | |
* Irá resultar em um erro: | |
* "Cannot assign to value: 'helloWorld' is a 'let' constant" | |
*/ |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment