课程: JavaScript: Best Practices for Data
今天就学习课程吧!
今天就开通帐号,24,700 门业界名师课程任您挑!
Solution: Assign values
(electronic music) - [Instructor] So first off, we can customize this a little bit. So we have the user variable, and I put in your name as a placeholder, but if you want, go ahead and fill in your name there. I'll put in mine. Now, first off, I noticed that I have a variety of quotes in this file. I switch back and forth between single and double quotes. I've even got some backticks at the bottom. So over in my eslint file, I'm going to add a quotes rule, and the value there is error and single, which is what I'm standardizing on. And then that's going to guide me to what I need to replace here. So use strict is using doubles. Now it's got singles. Down here, I've got an empty string. And now that's singles. And again, it's going to leave my backticks alone, because it's okay for me to use template literals while still using another choice for the rest of my quotes. So I also want to make sure that I am using…
随堂练习,边学边练
下载课堂讲义。学练结合,紧跟进度,轻松巩固知识。