今天就学习课程吧!
今天就开通帐号,24,700 门业界名师课程任您挑!
Challenge: Define let/const variables
- [Narrator] Okay, so now let's put all this new knowledge together in a final challenge. Since ES6 and beyond uses mostly const and let, in this challenge, we'll only use those two. So here's the new challenge, first declare an immutable variable in the global scope listing a few warriors and their attributes. Then in a function, if the attribute of a warrior meets a certain requirement, list that warrior into the console. Also, constantly log what variables is accessible where so you demonstrate to yourself you understand their scope. Feel free to leverage some of the examples with it today in this course and good luck.
随堂练习,边学边练
下载课堂讲义。学练结合,紧跟进度,轻松巩固知识。