• Home
  • Recent Q&A
  • Java
  • Cloud
  • JavaScript
  • Python
  • SQL
  • PHP
  • HTML
  • C++
  • Data Science
  • DBMS
  • Devops
  • Hadoop
  • Machine Learning
in JavaScript by
Q:
How About 2+5+"8"?

1 Answer

0 votes
by

Since 2 and 5 are integers, this is number arithmetic, since 8 is a string, it’s concatenation, so 78 is the result.

Related questions

0 votes
asked Sep 20 in JavaScript by sharadyadav1986
0 votes
asked Jan 23, 2020 in Data Science by AdilsonLima
...