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…

Why Sass is Awesome?

Why is sass awesome? It makes css work way easier and faster. You have to have ruby on rails installed and the sass gem installed. First install sass with this command (you only need to do it once) gem install sass Type in CLI first navigate to correct director with cd sass –watch . to…

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>…