Created
March 6, 2020 06:48
-
-
Save jsmanifest/1661203ad0a56f34bb818c6c312a923c 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
// Perfectly valid because in JavaScript you can access characters in a string by index | |
// example: | |
// const x = 'coffee' | |
// const letterF = x[3] // result: 'f' | |
const result = something('hello', 50) | |
// NOT valid because in JavaScript you can't access characters in a string by a string | |
const result = something('hello', '50') |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment