DEV Community

Discussion on: JavaScript Code Daily Challenge #2

Collapse
 
lakshyatyagi24 profile image
Lakshya Tyagi • Edited
    function performOperation(secondInteger, secondDecimal, secondString) {
        const firstInteger = 4;
        const firstDecimal = 4.0;
        const firstString = 'HackerRank ';

        const sum=firstInteger+parseInt(secondInteger);
        console.log(sum)

         console.log(firstDecimal+parseFloat(secondDecimal))

        console.log(firstString+secondString)       
    }
Enter fullscreen mode Exit fullscreen mode