Rajashree
But if you go through the example once again you can see that below the code snippet I have explained that why it will not give us a desired output due to type error we can't perform mathematical operation when one of the variable is string in case of addition.
I should have followed up with one more example where JS console actually throws an error to make it understandable on layman terms.