Let’s look at the JavaScript with statement. We will go over the simple uses, as well as a deep dive into some more advanced concepts. As you can see, the car object becomes the default object in the scope. The object’s properties become available without using the ‘.’ operator.

Related Articles