Thursday, November 17, 2011

JavaScript basics

http://www.w3schools.com/js/js_loop_for_in.asp

var person={fname:"John",lname:"Doe",age:25};

for (x in person)
{
document.write(person[x] + " ");
}

--
JavaScript is Case Sensitive

--
You can break up a code line within a text string with a backslash. The example below will be displayed properly:

document.write("Hello \
World!");

--
try--catch--throw

--

No comments:

Post a Comment