How to Benchmark Your Javascript?

This is a quick tutorial on how to benchmark your javascript with console.time(“arg”) and console.timeEnd(“arg”) You would use developer tools to see how fast your script runs. Example Code: Array.prototype.proto1 = function(){}; Array.prototype.proto2 = function(){}; Array.prototype.proto3 = function(){}; Array.prototype.proto4 = function(){}; Array.prototype.proto5 = function(){}; var objectLateral = { arrayBank: [‘Some random string’, ‘Other String’, ‘More…

Details

Hello World in React Js

This is hello word app created with react.js This is my first simple script. Yes, I know it’s easier to do this in html. But I wanted to do this in JSX to make thing more complicated.   <!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <title>Jsx</title> </head> <body> <!– container node –> <div id="jsx"> </div>…

Details