From the course: JavaScript: Best Practices for Data

Unlock the full course today

Join today to access over 22,500 courses taught by industry experts or purchase this course individually.

Solution: Assign values

Solution: Assign values - JavaScript Tutorial

From the course: JavaScript: Best Practices for Data

Start my 1-month free trial

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…

Contents