Query on feature layer and draw a point on feature with matching OBJECTID
<p>I have a JSON file with data as:</p>

<pre><code>    [{
        "data": [{
            "assetID": 1,
            "colorCode": 3
        }, {
            "assetID": 2,
            "colorCode": 1
        }, {
            "assetID": 3,
            "colorCode": 4
        }, {
            "assetID": 4,
            "colorCode": 2
        }, {
            "assetID": 5,
            "colorCode": 3
        }, {
            .
            .
            .
        "assetID": 1000,
        "colorCode": 2
    }]
}]
</code></pre>

<p>where, 
assetID is unique (upto 1000)...
colorCode is a random number between 1 to 4... and each colorCode corresponds to any unique color.Like,</p>

<p>colorCode 1, color Green...
  colorCode 2, color Orange...
  colorCode 3, color Yellow...
  colorCode 4, color Red...</p>

<p>I have created a simple webmap in ArcGIS online with one tile layer and one feature layer. Now, I have to write a code in JS where when the feature's OBJECTID matches the assetID, a point should be drawn there in the color corresponding to the colorCode on the map.
Like, for assetID 1 colorCode is 3, so at feature with OBJECTID 1 on the map, a point should be drawn there in green color and so on.
I have created the JSON file and the webmap, but I am really new to all this ArcGIs and dojo and I am really at a loss where to proceed next.</p>