Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

for in javascript

const user ={
name:'Shirshak',
age:25,
subscibers:200,
money:'lolno'
}

for(let x in user){
console.log(user[x]) //name,age,subscriber and money(only get key not value)
}
Source by developer.mozilla.org #
 
PREVIOUS NEXT
Tagged: #javascript
ADD COMMENT
Topic
Name
9+5 =