In this program, you will learn how to find the square root of a number in JavaScript.

`let z = Math.sqrt(num)`

## Example: How to find the square root of a number in JavaScript

```
let num = prompt("Enter a number")
let z = Math.sqrt(num)
console.log("Square root is:" +z)
```

#### Output:

```
Enter a number> 64
Square root is:8
```