9
Mar/08
0

Javascript Essentials

Looking into creating my own ASP.Net Control Extenders (like in the Ajax Control Toolkit), I found myself having to brush up on my Javascript. So here is a quick revision of what I (and maybe you too) need to remember.

Function declaration:

function SayHelloTo(nameStr) {

document.write('Hello ' + nameStr);

}

Function with return statement:

function add(x, y) {

return x + y;