Posts by real-viictor • 1 point
1 post
-
-2
votes2
answers86
viewsA: Is there a difference in creating objects and adding properties with literal notation or with`new Object` in Javascript?
Yes, they are equivalent. The two methods are declaring the object and defining its properties, but in the second way, you stated fabricacao as an array, not as a string. Doing the second way is…