3. Interpreted Language
Prototype based language
JavaScript
style of object-oriented programming
Support Inheritance
Dynamic Types
Standardize as ECMAScript
4. x = "SomeName";
function Add() {
x = "Add";
console.log("Add");
General
Practices
}
//Functions
is this correct ?
window.Add();
//Global variables,window object
console.log( window.x );
9. mySpace.Class1 = function () { };
mySpace.Class1.prototype = {
methodOne: function () {
return "methodOne";
},
Classes and
Objects
methodTwo: function (para) {
console.log(para);
}
};
var a = new Class1();
a.methodOne();
10. Use Js files available in Web Server
Extensions15TEMPLATELAYOUTS
JSOM
JavaScript
Object Model