0
Can javascript objects be compared with python dictionaries?
2 Answers
+ 1
In no way!
Dictionaries cannot be instantiated, inherited, they do not have a `self` context. They cannot contain self methods or have a constructor.
JavaScript objects are similar to python objects except they are prototype-based not class-based.
In python, a class is a blueprint for an object. In JavaScript, a prototype is a blueprint of an object.
0
nah, but json can be converted to a python dictionary in python very easily using the json module