FrontendWalla

Solutions for Real World Frontend Problems.

javascript

Debugging Javascript using Console Object

Some of you might have already used  Console Object in javascript to log values of a variable for debugging purposes. var arr = [‘1′,’2′,’3′,’4′,’5’]; console.log(arr); There are some interesting methods in Console API other than log. The details of Console API can be found  here https://developers.google.com/chrome-developer-tools/docs/console-api Note: The link above is for Console API supported by […]

Loose vs Strict Typed Languages and a Code Bug

If somebody has worked in in a strict type language like java he would definitely know that function in java have to return type. So lets say we need to define a function for sum of two numbers. We would say: public int add(int a,int b){ return a + b; } Here we are very sure […]

Scroll to top