+ 3
Javascript objects....
https://code.sololearn.com/WlVnodu7nMim/# In the insert function, parameter key shows a error "'key' is declared but its value is never used" how to prevent this ?
5 Answers
+ 3
typo at line 40
non-capitalize the m
+ 3
along with Gordon's answer
use ObjectName[key]
instead of ObjectName.key
+ 3
Muralikrishnan , when you set obj.key using . notation, you are setting the object property 'key' to be set. Use obj[key].property instead. And as Gordon said, non-capitalize the m at line 40.
Edited your code:
https://code.sololearn.com/WvXbaiP4Uw3m/?ref=app
+ 2
Tq all âď¸âď¸âď¸
+ 1
@Gordon
but it doesn't work