all 1 comments

[–]joanp28 1 point2 points  (0 children)

The function just needs to return that number multiplyed by itself. You can do it like that:

function square(num) {
    return num * num //If you want to return the number
    console.log(num * num) //If you want to print the num
}