JS存档2019-08-07read the source issueJavaScript是如何工作的:引擎,运行时和调用堆栈的概述! yihong06182019-12-05### [关于箭头函数](https://www.codenong.com/39629962/) ```javascript const myFunc = (stuff) => { someArray.push(stuff) } const otherFunc = (stuff) => someArray.push(stuff) console.log(myFunc()) // --> logs undefined console.logo(otherFunc()) // --> logs result of push which is new array length const x = () => {} // Does nothing const y = () => ({}) // returns an object ```yihong06182019-12-271. js的字符串也是不可变类型,需要先转换成数组 2. 关于转换和python基本一样 yihong06182020-01-02[关于JS中的无穷数](https://juejin.im/post/5e0005086fb9a016464356e8)yihong06182020-01-13map 必须用set 而不能像python那样直接a[2] =3 赋值
yihong06182019-12-05### [关于箭头函数](https://www.codenong.com/39629962/) ```javascript const myFunc = (stuff) => { someArray.push(stuff) } const otherFunc = (stuff) => someArray.push(stuff) console.log(myFunc()) // --> logs undefined console.logo(otherFunc()) // --> logs result of push which is new array length const x = () => {} // Does nothing const y = () => ({}) // returns an object ```
### [关于箭头函数](https://www.codenong.com/39629962/) ```javascript const myFunc = (stuff) => { someArray.push(stuff) } const otherFunc = (stuff) => someArray.push(stuff) console.log(myFunc()) // --> logs undefined console.logo(otherFunc()) // --> logs result of push which is new array length const x = () => {} // Does nothing const y = () => ({}) // returns an object ```
1. js的字符串也是不可变类型,需要先转换成数组 2. 关于转换和python基本一样
[关于JS中的无穷数](https://juejin.im/post/5e0005086fb9a016464356e8)
map 必须用set 而不能像python那样直接a[2] =3 赋值