Check out a free preview of the full JavaScript: From Fundamentals to Functional JS, v2 course:
The "ES5 Rewrite Exercise" Lesson is part of the full, JavaScript: From Fundamentals to Functional JS, v2 course featured in this preview video. Here's what you'd learn in this lesson:

In this exercise, students rewrite JavaScript into ES5 JavaScript.

Get Unlimited Access Now

Transcript from the "ES5 Rewrite Exercise" Lesson

[00:00:00]
>> Bianca Gandolfo: All right, so we saw this, we're gonna do a little exercise where we are going to write this in ES5.
>> Bianca Gandolfo: So we have to think about how do you set a default parameter or how did you set a default parameter before this feature was available in 2015 or whenever it was released?