Pages, some stolen, some original

Saturday, October 22, 2016

Fun with JavaScript

Primitive Object
Primitive values, like strings and numbers, cannot have properties or methods (because they are not objects).
But with JavaScript, methods and properties are also available to primitive values, because JavaScript treats primitive values as objects when executing methods and properties. - w3schools.com JavaScript Tutorial
Well, I'm glad we cleared that up. Morons.

No comments:

Post a Comment