Interviewer And Interviewee Guide

Expert Developer JavaScript Interview Question:

What would "1"+2+3 and 1+2+"3" evaluate to, respectively?

Submitted by: Administrator
When the first character is a string, the remaining characters will be converted into a single string, rendering 123.
If the string is at the end, the initial characters will perform normal mathematical functions before converting into a string, resulting in 33.
Submitted by:

Read Online Expert Developer JavaScript Job Interview Questions And Answers
Copyright 2007-2024 by Interview Questions Answers .ORG All Rights Reserved.
https://InterviewQuestionsAnswers.ORG.