This question already has an answer here:
I would like to get the min lat, min long, max lat, max long of my viewport in ArcGIS JS API. Is this possible?
We can use the map's extent property, to get the extent. Usually your map will be in webmercator. we'll have to project the bounds back to EPSG:4326 in that case.
You can use the following code:
The simplest way to do this, if your map is in web mercator, is to use map.geographicExtent.