Function parameters in JavaScript

Functions can take data as parameters. For example, let's make a function that will take a number as a parameter:

javascriptfunction func(num) {
  
}

Let's make the function square the passed number:

javascriptfunction func(num) {
  console.log(num ** 2);
}

Let's test the function by calling it with different numbers:

javascriptfunc(2); // shows 4
func(3); // shows 9
Задание 1

Make a function that takes a number as a parameter and prints the cube of this number to the console.

Задание 2

Make a function that takes a number as a parameter and checks if the number is positive or negative. In the first case, let the function output the text '+++' to the console, and in the second case, '---'.