Working With Web Worker Part3
In my previous post we have learn about dedicated worker and created a date time worker. In this demo, “We will learn to create inline worker”. A inline worker can be created using script element and type attribute with value text/worker.The following code shows the syntax of the inline worker script. <script id="multiplyWorker" type="javascript/worker"> //Worker […]
Working With Web Worker Part2
In my previous post we have learn creating a dedicated worker. In this demo, “We will learn to create a dedicate worker for generating time with Hour,Minute and Second”. To develop this dedicated worker we have created 2 files dateWorker.js and dateWorkerDemo.html. The dateWorker.js file contains the code definition of the date worker. The dateWorkerDemo.html […]
Working With Web Worker Part1
Web Worker provides a way to get Concurrency in JavaScript programming. Web Worker runs in browsers background. Web Worker are available in 2 different taste Dedicated and Shared worker. In this demo, “We will learn to create a dedicated worker which will generate square of number”. We can check the browser support for Web Worker […]
Traceur ES6 Generators Part 4
In my previous post we have learn about passing parameter to ES6 Generators using next() method. The next() method is used for iterating over a Generators.We can also iterate the Generator using for..of loop.Each iterated object in this loop is the value of yield statement.The next() method return a object with value and done property […]