课程: JavaScript: Best Practices for Data
今天就学习课程吧!
今天就开通帐号,24,700 门业界名师课程任您挑!
Challenge: Declare variables
(lively music) - [Instructor] Ready to test and implement best practices in declaring variables? It's time for a challenge. My start code takes a step-by-step approach to building out a user friendly version of the current date, including the day of the week. There's no need to worry about functionality here or optimizing the code. Instead, focus on implementing strategies for declaring variables that make for better organized and predictable code. Add rules as appropriate to the eslintrc file to check for issues as well as fixing those issues in the app.js file. This exercise should take you about 10 minutes. When you're done join me in the next video, and I'll walk you through how I approached it.
随堂练习,边学边练
下载课堂讲义。学练结合,紧跟进度,轻松巩固知识。
内容
-
-
-
-
Prefer const, then let5 分钟 7 秒
-
(已锁定)
Use individual statements to create variables1 分钟 41 秒
-
(已锁定)
Create descriptive variable names3 分钟
-
(已锁定)
Standardize acronym case2 分钟 22 秒
-
(已锁定)
Remove unused variables1 分钟 18 秒
-
(已锁定)
Challenge: Declare variables45 秒
-
(已锁定)
Solution: Declare variables5 分钟 38 秒
-
-
-
-
-