Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

for in loop javascript

var subjects = {
	'math': 85,
	'physics': 75,
}

for (var i in subjects) {
	console.log(i + ' : ' + subjects[i]);
}

// math : 85
// physics : 75
Source by developer.mozilla.org #
 
PREVIOUS NEXT
Tagged: #loop #javascript
ADD COMMENT
Topic
Name
8+9 =