Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

JS存档 #18

Open
yihong0618 opened this issue Aug 7, 2019 · 4 comments
Open

JS存档 #18

yihong0618 opened this issue Aug 7, 2019 · 4 comments
Labels
技术文章 技术文章

Comments

@yihong0618
Copy link
Owner

JavaScript是如何工作的:引擎,运行时和调用堆栈的概述!

image
image
image

@yihong0618 yihong0618 added the 技术文章 技术文章 label Oct 2, 2019
@yihong0618 yihong0618 changed the title Js存档 Nov 22, 2019
@yihong0618
Copy link
Owner Author

关于箭头函数

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
@yihong0618
Copy link
Owner Author

  1. js的字符串也是不可变类型,需要先转换成数组
  2. 关于转换和python基本一样
@yihong0618
Copy link
Owner Author

@yihong0618
Copy link
Owner Author

map 必须用set 而不能像python那样直接a[2] =3 赋值

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
技术文章 技术文章
1 participant