Skip to content
Advertisement

>

Error message that I get is as below:

JavaScript

Source Code :

JavaScript

Advertisement

Answer

This is not an error. It’s printing the correct thing. What you are doing is not calling a function instead printing it as an object as in python everything is an object.

Solution:

JavaScript

This will print your desired output i.e “2019 Tesla Model S”

User contributions licensed under: CC BY-SA
8 People found this is helpful
Advertisement