March 2018
Beginner to intermediate
514 pages
13h 11m
English
JS, by default, has only three simple data types: number, string, and boolean. Everything else can have a property assigned to it:
//Define an arrayvar book = [];book.title = 'Mastering Qlik Sense';//Book now has a property!//Define an objectvar book = {};book.author= 'Martin Mahler & Juan Vitantonio';//Book object now has an author property!//Define functionvar book = function() { return 'Hello'}; book.version= 'v1.1;//Book function now has a version property!
This is an interesting concept, and while possible, it's not necessarily recommended to use to its full extent; for example, arrays should not be inadvertently used as objects with properties. But what is interesting is that functions ...
Read now
Unlock full access