Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

going through every attributes of an object javascript

let a = {x: 200, y: 1}
let attributes = Object.keys(a)
console.log(attributes)
//output: ["x", "y"]
 
PREVIOUS NEXT
Tagged: #attributes #object #javascript
ADD COMMENT
Topic
Name
8+2 =