Up next in 10
#1 JavaScript Interview Question | Solve in 30 Seconds #shorts #javascript
JavaScript Interview Question
Tutorialspoint, a leading ed-tech platform, offers Simply Easy Learning at affordable prices.
Check out more Trending Courses to Learn: http://bit.ly/3KBW32w
#tutorialspoint #javascripttraining #javascripttutorial #webdevelopment #javascriptframeworks #javascriptinterviewquestions #programming #webdeveloper
Show More Show Less
View Video Transcript0:00
What is the output of this JavaScript code? The output is 4. We are adding two
0:10
different data types. 3 is integer and true is a boolean. Now here JavaScript
0:17
does type conversion and converts true to 1. So true is equal to 1 and 3 plus 1