Deal with Javascript Object

How to get JS objects length

 

var student ={
id:100,
name:”Nuwan”
}
console.info(Object.keys(student).length)