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

今日份题目 #1

Open
haifun opened this issue May 18, 2020 · 0 comments
Open

今日份题目 #1

haifun opened this issue May 18, 2020 · 0 comments

Comments

@haifun
Copy link
Owner

haifun commented May 18, 2020

var num = 20;
const obj = {
	num: 10,
	func: (num) => {
		this.num += 5;
		console.log(this.num);
		num += 5;
		console.log(num);
		var num = 30;
		return function () {
			this.num += 4;
			console.log(this.num);
			num += 10;
			console.log(num);
		}
	}
};
obj.func(40)();

打印结果是什么呢

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant