Advertisement
Spocoman

03. Integer and Float

Jan 16th, 2022
90
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. function solve(num1, num2, num3) {
  2.    
  3.     let sum = num1 + num2 + num3;
  4.     console.log(sum === parseInt(sum) ? `${sum} - Integer` : `${sum} - Float`);
  5.    
  6. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement