Created
March 10, 2018 19:47
-
-
Save guaracyalima/b60c62a34c6e964492e2acefad2a1fad to your computer and use it in GitHub Desktop.
ES6 — métodos para manipulação de strings
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 text = 'JavaScript is cool '; | |
console.log(text.includes('is')); |
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
console.log('JavaScript Level God '.repeat(10)); |
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 text = 'JavaScript is cool '; | |
console.log(text.startsWith('JavaScript')); |
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 text = 'JavaScript is cool '; | |
console.log(text.startsWith('JavaScript', 4)); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment