Javascript String Array Functions Python W3schools