ES6 / ES2015 introduced 2 new components : 1)iterables 2)iterators What are iterables ? Ans : It is a data structure that allows it’s data …
Author: Pankaj kumar Agarwal
In the earlier post we have gone through the difference between the horizontal scaling and the vertical scaling.Refer : http://pankajagarwal.in/?p=1881 Load balancing in horizontal scaling …
In real world we do have a lot of data to handle on the server side . SO to distribute the data we can have …
Dom Traversal With the HTML DOM, we can easily navigate the node tree using node relationships. When a html page gets loaded. A node tree/dom …
Get a list of random images , data fromhttps://randomuser.me/ Get a fake text contenthttps://www.blindtextgenerator.com/ Download brackets from below linkhttp://brackets.io/Note : Best known editor …
var n = 2; for(var i=2;i<n;i++){ if(n%i==0){ console.log(‘divided by ‘,i) break; } } console.log(“The i is “,i); if(n==i){ console.log(“Yes prime”) } else{ console.log(“Not prime”); } …
Print all elements of an array var arr = [10,21,23,11,2,1]; for(var i=0;i<arr.length;i++){ console.log(‘The value is ‘,arr[i]); } Find sum of all elements of array var …
Error boundaries in reactJS React16 comes with the idea of error boundaries. If any part of the react interface goes down/error , it should not …
Queue in Javascript Inside the world computer science, a queue is a collection in which the entities in the collection are kept in order and …
Link list is the liner collection of data nodes. Each node contains the data + next (address of next node). Head contains the reference of …