code.progysm.com

with

Instruction du langage
Enlevé du mode strict (erreur).

Syntaxe:
	with(objet) instruction

	with(objet) {
		instruction1
		instruction2
	}

Exemple:
	var o = {a:1, b:2}
	with(o) {
		console.log(a) // affiche 1
		console.log(b) // affiche 2
	}