Return to site

Javascript array remove empty slots

broken image

We don’t differentiate between different vehicles – we consider them all the same.We should be able to create the parking lot with a given size (number of parking spots).That class should consist of variables and methods that simulate how a parking lot works. And to make it a bit more interesting, we will create a small React app that will visualize the workings of our class.įor this challenge, you have to implement a class in JavaScript. In this tutorial we will do that in JavaScript. The Parking Lot is challenge where you are asked to write a class that manages an imaginary parking lot. Have you heard about the Parking Lot challenge? If not, let me explain briefly.

broken image