I am trying to add a class to a div I create with javascript. I could append it inside another div with a class. This is the line of code in question.
var car_storage = document.createElement('div');
I have tried using, the code below, but I get instead of a class this, "is[object, object]"
var car_storage = document.createElement('div'{className: 'car_storage_cont'});
Please help.