Q:

ArcGIS API for JavaScript - Create simple buffer or circle graphic against one point

I am stuck, trying to figure out how to create a simple graphic for adding a circle based on one point in my web map. I need the circle to be centered on my single point, with a radius of 5 miles. I saw examples for the geodesic circle and that didn't work for me, as well a creating a buffer, which I don't think I need. I just need a simple circle graphic. Is there a simple way to do this? I have a map with one point and need this graphic for a boundary. I apologize as I am new to this and trying to learn this API quickly. 
thanks

A:

This will give you a 5 mile geodesic circle around a predefined point.
<!DOCTYPE html>
<html>
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
    <meta name="viewport" content="initial-scale=1, maximum-scale=1, user-scalable=no">
    <title></title>
    <link rel="stylesheet" href="//js.arcgis.com/3.9/js/esri/css/esri.css">
    <style>
    html, body, #map {
        height: 100%;
        width: 100%;
        margin: 0;
        padding: 0;
    }

    </style>

    <script src="//js.arcgis.com/3.9/"></script>
    <script>
    var map;

    require([
      "esri/map", "esri/geometry/Circle", "esri/symbols/SimpleFillSymbol", "esri/symbols/SimpleMarkerSymbol", "esri/symbols/SimpleLineSymbol",
      "esri/graphic", "esri/geometry/Point", "esri/Color",
      "dojo/domReady!"
    ], function (
      Map, Circle, SimpleFillSymbol, SimpleMarkerSymbol, SimpleLineSymbol,
      Graphic, Point, Color
    ) {
        map = new Map("map", {
        basemap: "streets",
        center: [-77.036744, 38.897731],
        zoom: 12
        });
        var symbol = new SimpleFillSymbol().setColor(null).outline.setColor("blue");
        var symbolPoint = new SimpleMarkerSymbol(SimpleMarkerSymbol.STYLE_X, 10,
              new SimpleLineSymbol(SimpleLineSymbol.STYLE_SOLID, new Color([255, 0, 0]), 1),
              new Color([0, 255, 0, 0.25]));

        map.on("load", function () {
            var point = new Point([-77.036744, 38.897731]);
            var pointGraphic = new Graphic(point, symbolPoint);
            map.graphics.add(pointGraphic);
            var circle = new Circle(point, {
                radius: 5,
                radiusUnit: esri.Units.MILES,
                geodesic: true
            });
            var circleGraphic = new Graphic(circle, symbol);
            map.graphics.add(circleGraphic);
        });

    });
    </script>
</head>
<body>
    <div id="map"></div>
</body>
</html> 

