+ 2

Can I write this code without "new"??

https://code.sololearn.com/WNhkOJmP1oaK/?ref=app

22nd Mar 2018, 8:48 PM
Sina
Sina - avatar
3 Answers
+ 1
Why don’t you want to use new?
22nd Mar 2018, 8:59 PM
Ariela
Ariela - avatar
0
because I don't know where should I use new
23rd Mar 2018, 6:24 PM
Sina
Sina - avatar
0
New is used instantiate an object such as the google.maps.Map
23rd Mar 2018, 6:48 PM
Ariela
Ariela - avatar