Suddenly introduce new key word "NEW" | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

Suddenly introduce new key word "NEW"

is it necessary? what does it do?

27th Jun 2017, 9:29 AM
Andrew C
Andrew C - avatar
2 Answers
0
it instanciate a new object. You do not need it for primitives
27th Jun 2017, 10:16 AM
Nicolas Dussault-Pilon
Nicolas Dussault-Pilon - avatar
0
thanks what's a primitive? vs a non primitive
30th Jun 2017, 9:58 PM
Andrew C
Andrew C - avatar