How to get number of keys in JavaScript object
To get the number of keys we can use the Object.keys()
method in JavaScript.
Example:
const obj = {
name: 'king',
age: 20,
active: true
}
console.log(Object.keys(obj).length); // 3
To get the number of keys we can use the Object.keys()
method in JavaScript.
Example:
const obj = {
name: 'king',
age: 20,
active: true
}
console.log(Object.keys(obj).length); // 3
In this demo, we are going to learn about how to rotate an image continuously using the css animations.
In this demo, i will show you how to create a instagram login page using html and css.
In this demo, i will show you how to create a pulse animation using css.
In this demo, i will show you how to create a snow fall animation using css and JavaScript.