Operators and expressions of JavaScript

Q 1. See the given code of JavaScript and choose the correct output from the following: var string1 = “40”;   varvalueinit=50;   alert( string1 +intvalue);   A. 90 B. 4050 C. 4090 D. Exception Show Answer Answer:-B. 4050 Explanation In JavaScript, the alert method does the typecasting and converts the value of the variable “valueinit” to a string after that it concatenates … Continue reading Operators and expressions of JavaScript