Language (javaScript JS)

TwitterFacebook
Get flash to fully experience Pearltrees
js.doc

Javascript and design pattern

JavaScript tutorial: Variable scope and the var keyword.

Simple example with comments: <html><head><script type="text/javascript" language="JavaScript"><!-- var numberCars = 3; // global numberTrees = 15; // global if (numberTrees > numberCars) { var numberRoads = 4; // global } else { var numberLakes = 9; // global, but will be undefined since never get in here. } function simpleFunction() { var colorCar = 'blue'; // local colorTree = 'green'; // global, once this function is called if (colorCar ! http://www.mredkj.com/tutorials/reference_js_intro_ex.html

Formation JavaScript - Table des matières

http://www.misfu.com/static/Javascript/sommaire_javascript.html Accueil > Cours Javascript Traduction de la page Table of contents rédigée par Peter-Paul Koch et traduite par Christophe Bruggeman La traduction est en cours, si vous trouvez une erreur sur une page ou si vous souhaitez suggérer une amélioration, n'hésitez pas à utiliser le forum . Le JavaScript est un langage de programmation non compilé, orienté objet, principalement utilisé dans les pages Web. L'auteur divise les pages ainsi 'Debutant' et 'Intermédiaire'.
Accueil > Cours Javascript > Le mot-clé this http://www.misfu.com/static/Javascript/this.html

Javascript - Le mot-clé this

Closures are often considered an advanced feature in JavaScript, but understanding them is essential to mastering the language. Consider the following function: The init() function creates a local variable called name , and then defines a function called displayName() . displayName() is an inner function — it is defined inside init() , and is only available within the body of that function. displayName() has no local variables of its own, but reuses the name variable declared in the outer function. https://developer.mozilla.org/en-US/docs/JavaScript/Guide/Closures

Closures

JavaScript is an object-based language based on prototypes, rather than being class-based. Because of this different basis, it can be less apparent how JavaScript allows you to create hierarchies of objects and to have inheritance of properties and their values. This chapter attempts to clarify the situation. This chapter assumes that you are already somewhat familiar with JavaScript and that you have used JavaScript functions to create simple objects. Class-based vs. prototype-based languages https://developer.mozilla.org/en-US/docs/JavaScript/Guide/Details_of_the_Object_Model

Details of the object model (Class-based vs. prototype-based languages)

Closures (Javascript)

String (javascript)