Tags » Javscript

Javascript Objects

Objects have two things:

  • Properties
  • Methods

Say you have a car, your car would be the object.

Properties would be things such as length, height, weight etc. 32 more words


javascript - basics

Important – Code always runs from top to bottom, so is the reason for defining functions on the top after defining variables. Because we cannot call a function if compiler/runner doesn;t knows about it already. 227 more words


Codecademy.com - the good - the bad and the ugly.

School holidays are a great time for kids to well, have a holiday.

But this year, this poor programmer has been besieged by some pupils of a local School. 680 more words


Javascript Promises - A better way to complete your async operations

Promises, Promises, Promises…

If you are writing javascript regularly, you are probably already using callback functions. In complex Javascript applications callbacks can become deeply nested, and difficult to keep track of. 672 more words


javascript map filter reduce example

<!DOCTYPE html>
<html lang=”en”>
<meta charset=”UTF-8″>


var numbers = ;
var snumbers = numbers.map(function(i){
return i*i;

// it works like a loop ,return 1 4 9 16 25… 33 more words


loop through array in ES5

If you’re using an environment that supports the Array features of ES5 (directly or using a shim), you can use the new forEach function:

var a = ["a", "b", "c"];
a.forEach(function(entry) {
}); 399 more words