
Compare procedural versus functional programming by capitalizing a names array and joining the results. Create a pure capitalize-names function that uses input and returns output without side effects.
Use console log to inspect values and errors, with line numbers and stack traces. Pause execution with alert, preserve log upon navigation, and step through code using debugging tools.
Adopt pure functions and minimize global state in JavaScript to keep code easy to test and maintain; use unit testing and test-driven development to streamline debugging within a sandbox.
Define the browser's string conversion by implementing the toString method on a vehicle prototype to return a lowercase to capitalized string for console logs and output strings.
Complete this refactor module and continue learning through online courses that offer immersive experiences, deepen expertise, and invite you to our full stack javascript bootcamp at refactor.com.
In this course we'll examine advanced techniques in JavaScript. We’ll first look at the difference between statements and expressions and how functional programming can improve the way that we write code.
We’ll also look at Underscore, which is a library for providing utility, functional methods for us to use in our applications. We’ll also cover object-oriented programming in JavaScript. We’ll cover different ways to create classes and how to utilize them in our applications in JavaScript.
Finally, we’ll take a look at some of the different debugging techniques and tactics that we can use to help minimize the amount of time we spend debugging our applications. Let’s get started.
Course Includes:
What You'll Learn: