JavaScript: Difference between revisions

From NovaOrdis Knowledge Base
Jump to navigation Jump to search
No edit summary
Line 29: Line 29:


<tt>_.range(1, 100000)</tt>: a function to create flexibly numbered lists of integers: https://underscorejs.org/#range
<tt>_.range(1, 100000)</tt>: a function to create flexibly numbered lists of integers: https://underscorejs.org/#range
<tt>_.map(list, iteratee, [context])</tt>: https://underscorejs.org/#map

Revision as of 23:03, 14 August 2019

Subjects

Examples

Organizatorium

Things I've Found Useful While Working with Chrome Console

var a = 10;
console.log(a);

var workersUp = function(targetCnt) {
    return Cluster.workers().length == targetCnt;
};

A JavaScript identifier must start with lower or upper case letter, underscore (_) or dollar ($). Subsequent characters may include digits.

The Underscore identifier: it is frequently used to preface the name of an object's property or method that is private.

https://underscorejs.org:

_.range(1, 100000): a function to create flexibly numbered lists of integers: https://underscorejs.org/#range

_.map(list, iteratee, [context]): https://underscorejs.org/#map