Click here to Skip to main content
15,900,110 members

Comments by Member 14828342 (Top 3 by date)

Member 14828342 12-May-20 10:22am View    
/*This is my code*/let email =Symbol();
let Employee = {
name : "rajesh",
phone :9800000000,
[email] : "rajesh@gmail.com"

};

let allKeys = {
keyss : Object.keys(Employee)
};
console.log(allKeys.keyss);
let privateKeys = {
p : Employee[email]
};
console.log(privateKeys.p);
let publicKeys = {
pu : Object.getOwnPropertyNames(Employee)
};
console.log(publicKeys.pu)


module.exports = {Employee, allKeys, privateKeys, publicKeys}

but still failed in hacker rank
can you find the mistake atleast now? and help with what went wrong
npm ERR! Test failed
Member 14828342 11-May-20 11:21am View    
I think my program is not clear
Can you provide me a snippet of code for the question ?
I clearly have no idea about the implementation, your code may help me to get the answer
Member 14828342 11-May-20 6:33am View    
It is not accepting the return Object.allkeys(Employee) in hackerrank