Created
December 10, 2016 20:05
-
-
Save casprwang/7af4e4f61c92bf9c7b4fee59bd7f130f 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
let a = 'abcd efg hig' | |
console.log(a) | |
console.log(a.split()) | |
console.log(a.split('')) | |
/* | |
abcd efg hig | |
[ 'abcd efg hig' ] | |
[ 'a', 'b', 'c', 'd', ' ', 'e', 'f', 'g', ' ', 'h', 'i', 'g' ] | |
*/ |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment