week8js.md - yucing/wp109b GitHub Wiki

1. continue ==>繼續執行

2. break ==>停止

3. n.substr(x,y) ==>從第x個字取y個

4. n.substring(x,y) -->從第x個字取y個

5. n.length ==>字串長度

6. n.toUpperCase() ==>將字串轉成大寫

7. n.toLowerCase() ==>將字串轉成小寫

8. n.trim() ==>把前後的空白去掉

9. n.concat(z) ==>將n跟z連接起來

10. n.charAt(x) ==>取出第x個字元

11. n.charCodeAt(x) ==>取出第x個字元的unicode

12. n.slice(x) ==>切出第x個字後的內容

13. n.push(x) ==>在n內容再加入一個x