This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function squareNumber(num) { | |
var squaredNum = num*num; | |
console.log('The result of squaring the number ' + num + ' is ' + squaredNum); | |
return squaredNum; | |
} | |
function halfNumber(num) { | |
var halfNum = num/2; | |
console.log('Half of ' + num + ' is ' + halfNum); | |
return halfNum; |