NaN problem help

function gipP(a, b, c){
    const gepot = Math.sqrt(Math.pow(a) + Math.pow(b))
    const perimetr = a + b + c
    return [gepot, perimetr]
}
console.log(gipP(4, 7, 3))

why when i try get it to the console it say that const gepot is not a number?

I’ve edited your post for readability. When you enter a code block into a forum post, please precede it with a separate line of three backticks and follow it with a separate line of three backticks to make it easier to read.

You can also use the “preformatted text” tool in the editor (</>) to add backticks around text.

See this post to find the backtick on your keyboard.
Note: Backticks (`) are not single quotes (’).

1 Like

I think you need another argument for pow.
https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Math/pow

1 Like