From the course: JavaScript: Best Practices for Data

Unlock the full course today

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

Challenge: Declare variables

Challenge: Declare variables - JavaScript Tutorial

From the course: JavaScript: Best Practices for Data

Start my 1-month free trial

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.

Contents