Driver Code .
let costPrice = 1500 , sellingPrice = 2000 ; if ( sellingPrice == costPrice ) document . write ( " " ) ; else if ( sellingPrice > costPrice ) document . write ( Profit ( costPrice , sellingPrice ) + " " ) ; else document . write ( Loss ( costPrice , sellingPrice ) + " " ) ;