Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function integerAndFloat(num1, num2, num3) {
- let sum = num1 + num2 + num3;
- // sum % 1 === 0? sum += " - Integer" : sum += " - Float";
- // console.log(sum);
- let output = sum % 1 === 0? sum + ' - Integer' : sum + ' - Float';
- console.log(output);
- }
Advertisement
Add Comment
Please, Sign In to add comment