Scala On Cloud

Thursday, January 19, 2017

JavaScript: Module Pattern with Anonymous Closure

›
Most developers create module JavaScript only with Public properties. var ARMORY = {   weaponList : [ * List of weapon object * ],   remove...

JavaScript: Ternary Conditional

›
Some simple conditionals take a lot of code to choose on assignment. let isAuthor = false; let weapon; if (isAuthor) {   weapon = "Ex...

JavaScript: Loop Optimazation

›
Here are the common For loop scenario. let data = {name:["Simon", "Alvin", "Sharmal"]}; for(let i=0; i<da...

JavaScript: Short Performance Tips

›
1. Use a document fragment to insert additional all at once. Each new addition to the DOM causes document "reflow", which can re...
Wednesday, January 18, 2017

JavaScript: Measuring Performance

›
You can test the speed of your code using console.time([label]) and console.timeEnd([label]). Example: console.time("SpendTest"...
Friday, December 30, 2016

JavaScript Evolution ESMAScript 6 - Promises

›
Typically, to avoid blocking the main thread of execution, we write non-blocking code using asynchronous style function pass callback like t...
Friday, December 23, 2016

JavaScript Evolution ESMAScript 6 - Module

›
In this section, we learn about using Module to encapsulate classes. To export classes, use the export syntax with the class name inside c...
‹
›
Home
View web version
Powered by Blogger.