Created
December 4, 2020 02:35
-
-
Save tofusoup429/38b4abed9442c95f96de45d979e5ac7a to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const employeeSalaryObject = {Mike:5000, Sandy:8000, Clark:9000} | |
const keyArray = Object.keys(employeeSalaryObject); // convert to keys-array | |
const size = keyArray.length; | |
console.log(size) //3 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment