<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: How to make the feature count variable global? in ArcGIS JavaScript Maps SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/how-to-make-the-feature-count-variable-global/m-p/616319#M57597</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Please wrap your code snippets in &lt;/SPAN&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt; tags.

&lt;PRE class="lia-code-sample line-numbers language-none"&gt;
//Declare this at the global scope
var myGlobalVariable;

function countfeat(type,select) {
&amp;nbsp;&amp;nbsp;&amp;nbsp; var selectedOption=select.options[select.selectedIndex];
&amp;nbsp;&amp;nbsp;&amp;nbsp; query = new esri.tasks.Query();
&amp;nbsp;&amp;nbsp;&amp;nbsp; query.where = type + " Like '%" + selectedOption.value + "%'";
&amp;nbsp;&amp;nbsp;&amp;nbsp; queryTask = new esri.tasks.QueryTask("http://vdid-gisedn-2:8399/arcgis/rest/services/flow_BRID/MapServer/0");
&amp;nbsp;&amp;nbsp;&amp;nbsp; queryTask.executeForCount(query, function(count){
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; alert(count); //it works here with a correct number returned
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; //Yes, and this is where you assign the value to your variable, but you can only use the value AFTER this has been done
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; alert("myGlobalVariable = " + myGlobalVariable);&amp;nbsp; //Will have a value of undefined the first time this runs, thereafter will have the previous value...unless you clear it between calls
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; myGlobalVariable = count;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; alert("myGlobalVariable = " + myGlobalVariable);&amp;nbsp; //Will now have the value of count
&amp;nbsp;&amp;nbsp;&amp;nbsp; });
};

//Hook this function up to a button, it will allow you to check the value of the global variable
function testValue(){
&amp;nbsp;&amp;nbsp;&amp;nbsp; alert("myGlobalVariable = " + myGlobalVariable);&amp;nbsp; //This will show undefined until the callback of executeForCount has run
}
&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I really think you'd benefit from investing some time learning some of the fundamentals of JavaScript (and programming concepts in general) things like scope, closures, asynchronous patterns etc. etc.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Here's a start on the JS stuff:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;A href="https://developer.mozilla.org/en-US/docs/JavaScript/Guide" rel="nofollow noopener noreferrer" target="_blank"&gt;https://developer.mozilla.org/en-US/docs/JavaScript/Guide&lt;/A&gt;&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sun, 12 Dec 2021 02:20:56 GMT</pubDate>
    <dc:creator>__Rich_</dc:creator>
    <dc:date>2021-12-12T02:20:56Z</dc:date>
    <item>
      <title>How to make the feature count variable global?</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/how-to-make-the-feature-count-variable-global/m-p/616314#M57592</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;It may be a simple answer but I need help:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;The following works but I need to put the 'count' variable into a global one so that I can use it in other functions.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;function countfeat(type,select) {&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; var selectedOption=select.options[select.selectedIndex];&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; query = new esri.tasks.Query();&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; query.where = type + " Like '%" + selectedOption.value + "%'";&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&lt;SPAN&gt;&amp;nbsp; queryTask = new esri.tasks.QueryTask("&lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="http://vdid-gisedn-2:8399/arcgis/rest/services/flow_BRID/MapServer/0" rel="nofollow" target="_blank"&gt;http://vdid-gisedn-2:8399/arcgis/rest/services/flow_BRID/MapServer/0&lt;/A&gt;&lt;SPAN&gt;");&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; queryTask.executeForCount(query, function(count){&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; dojo.byId('rightPane').innerHTML = count;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; });&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;};&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Ben&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 22 Nov 2012 20:33:13 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/how-to-make-the-feature-count-variable-global/m-p/616314#M57592</guid>
      <dc:creator>BenLam</dc:creator>
      <dc:date>2012-11-22T20:33:13Z</dc:date>
    </item>
    <item>
      <title>Re: How to make the feature count variable global?</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/how-to-make-the-feature-count-variable-global/m-p/616315#M57593</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Just declare a variable at the global scope of your page i.e. not inside a function, then assign it the value received by your callback.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Don't be seduced by the dark side of global variables though, there are many pages on the web that will explain why, here's an example:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://www.w3.org/wiki/JavaScript_best_practices#Avoid_globals"&gt;http://www.w3.org/wiki/JavaScript_best_practices#Avoid_globals&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Might be worth you reading up on this area in general:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;A href="https://developer.mozilla.org/en-US/docs/JavaScript/Reference/Statements/var"&gt;https://developer.mozilla.org/en-US/docs/JavaScript/Reference/Statements/var&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;A href="https://developer.mozilla.org/en-US/docs/JavaScript/Guide/Values,_variables,_and_literals#Variable_Scope"&gt;https://developer.mozilla.org/en-US/docs/JavaScript/Guide/Values,_variables,_and_literals#Variable_Scope&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Additionally this:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;A href="https://developer.mozilla.org/en-US/docs/JavaScript/Reference/Functions_and_function_scope"&gt;https://developer.mozilla.org/en-US/docs/JavaScript/Reference/Functions_and_function_scope&lt;/A&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 23 Nov 2012 08:52:31 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/how-to-make-the-feature-count-variable-global/m-p/616315#M57593</guid>
      <dc:creator>__Rich_</dc:creator>
      <dc:date>2012-11-23T08:52:31Z</dc:date>
    </item>
    <item>
      <title>Re: How to make the feature count variable global?</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/how-to-make-the-feature-count-variable-global/m-p/616316#M57594</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Thanks for the reply.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I tried the following but the global variable could not catch the variable "count":&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;var number;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; //global variable declared&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;function countfeat(type,select) {&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;var selectedOption=select.options[select.selectedIndex];&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;query = new esri.tasks.Query();&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;query.where = type + " Like '%" + selectedOption.value + "%'";&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&lt;SPAN&gt;queryTask = new esri.tasks.QueryTask("&lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="http://vdid-gisedn-2:8399/arcgis/rest/services/flow_BRID/MapServer/0" rel="nofollow" target="_blank"&gt;http://vdid-gisedn-2:8399/arcgis/rest/services/flow_BRID/MapServer/0&lt;/A&gt;&lt;SPAN&gt;");&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;queryTask.executeForCount(query, function(count){&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;number = count;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; //assign it to the global variable&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;});&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;};&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;if (number &amp;gt; 0){&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;alert(number);&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;}&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;It did not work.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I might have assigned it at a wrong place.&amp;nbsp; Please help further.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Ben&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 26 Nov 2012 16:54:30 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/how-to-make-the-feature-count-variable-global/m-p/616316#M57594</guid>
      <dc:creator>BenLam</dc:creator>
      <dc:date>2012-11-26T16:54:30Z</dc:date>
    </item>
    <item>
      <title>Re: How to make the feature count variable global?</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/how-to-make-the-feature-count-variable-global/m-p/616317#M57595</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;executeForCount is an asynchronous call, your number variable won't be assigned a value until the callback has run.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Perhaps these logging statements will help explain:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;
console.log("Declaring variable 'number'");
var number; //global variable declared
console.log("Value of number = " + number);

function countfeat(type,select) {
&amp;nbsp;&amp;nbsp;&amp;nbsp; console.log("countfeat called, number = " + number);
&amp;nbsp;&amp;nbsp;&amp;nbsp; var selectedOption=select.options[select.selectedIndex];
&amp;nbsp;&amp;nbsp;&amp;nbsp; query = new esri.tasks.Query();
&amp;nbsp;&amp;nbsp;&amp;nbsp; query.where = type + " Like '%" + selectedOption.value + "%'";
&amp;nbsp;&amp;nbsp;&amp;nbsp; queryTask = new esri.tasks.QueryTask("http://vdid-gisedn-2:8399/arcgis/rest/services/flow_BRID/MapServer/0");
&amp;nbsp;&amp;nbsp;&amp;nbsp; console.log("Before executeForCount, number = " + number);
&amp;nbsp;&amp;nbsp;&amp;nbsp; queryTask.executeForCount(query, function(count){
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; console.log("executeForCount callback called with count = " + count + ", number = " + number);
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; number = count; //assign it to the global variable
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; console.log("Finished executeForCount callback, value of number is now = " + number);
&amp;nbsp;&amp;nbsp;&amp;nbsp; });
&amp;nbsp;&amp;nbsp;&amp;nbsp; console.log("After calling executeForCount, number = " + number);
&amp;nbsp;&amp;nbsp;&amp;nbsp; console.log("countfeat finished, number = " + number);
};

//If you've just this code written in the global scope then it will execute immediately, definitely before you've even called your method above!
if (number &amp;gt; 0){
&amp;nbsp;&amp;nbsp;&amp;nbsp; alert(number);
}
&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 12 Dec 2021 02:20:53 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/how-to-make-the-feature-count-variable-global/m-p/616317#M57595</guid>
      <dc:creator>__Rich_</dc:creator>
      <dc:date>2021-12-12T02:20:53Z</dc:date>
    </item>
    <item>
      <title>Re: How to make the feature count variable global?</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/how-to-make-the-feature-count-variable-global/m-p/616318#M57596</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Thanks for your valuable time and reply.&amp;nbsp; Very much appreciated.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;This function is called by users clicking a button somewhere with all the needed variables provided, and is already functional and returned an accurate number answer.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;function countfeat(type,select) {&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; var selectedOption=select.options[select.selectedIndex];&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; query = new esri.tasks.Query();&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; query.where = type + " Like '%" + selectedOption.value + "%'";&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; queryTask = new esri.tasks.QueryTask("&lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="http://vdid-gisedn-2:8399/arcgis/rest/services/flow_BRID/MapServer/0" rel="nofollow" target="_blank"&gt;http://vdid-gisedn-2:8399/arcgis/rest/services/flow_BRID/MapServer/0&lt;/A&gt;&lt;SPAN&gt;");&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; queryTask.executeForCount(query, function(count){&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; alert(count);&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; //it works here with a correct number returned&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; });&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; };&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;But I have no idea how to assign this "count"&amp;nbsp; value to a variable outside this function so that other scripts can use it.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Ben&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 26 Nov 2012 21:09:53 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/how-to-make-the-feature-count-variable-global/m-p/616318#M57596</guid>
      <dc:creator>BenLam</dc:creator>
      <dc:date>2012-11-26T21:09:53Z</dc:date>
    </item>
    <item>
      <title>Re: How to make the feature count variable global?</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/how-to-make-the-feature-count-variable-global/m-p/616319#M57597</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Please wrap your code snippets in &lt;/SPAN&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt; tags.

&lt;PRE class="lia-code-sample line-numbers language-none"&gt;
//Declare this at the global scope
var myGlobalVariable;

function countfeat(type,select) {
&amp;nbsp;&amp;nbsp;&amp;nbsp; var selectedOption=select.options[select.selectedIndex];
&amp;nbsp;&amp;nbsp;&amp;nbsp; query = new esri.tasks.Query();
&amp;nbsp;&amp;nbsp;&amp;nbsp; query.where = type + " Like '%" + selectedOption.value + "%'";
&amp;nbsp;&amp;nbsp;&amp;nbsp; queryTask = new esri.tasks.QueryTask("http://vdid-gisedn-2:8399/arcgis/rest/services/flow_BRID/MapServer/0");
&amp;nbsp;&amp;nbsp;&amp;nbsp; queryTask.executeForCount(query, function(count){
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; alert(count); //it works here with a correct number returned
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; //Yes, and this is where you assign the value to your variable, but you can only use the value AFTER this has been done
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; alert("myGlobalVariable = " + myGlobalVariable);&amp;nbsp; //Will have a value of undefined the first time this runs, thereafter will have the previous value...unless you clear it between calls
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; myGlobalVariable = count;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; alert("myGlobalVariable = " + myGlobalVariable);&amp;nbsp; //Will now have the value of count
&amp;nbsp;&amp;nbsp;&amp;nbsp; });
};

//Hook this function up to a button, it will allow you to check the value of the global variable
function testValue(){
&amp;nbsp;&amp;nbsp;&amp;nbsp; alert("myGlobalVariable = " + myGlobalVariable);&amp;nbsp; //This will show undefined until the callback of executeForCount has run
}
&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I really think you'd benefit from investing some time learning some of the fundamentals of JavaScript (and programming concepts in general) things like scope, closures, asynchronous patterns etc. etc.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Here's a start on the JS stuff:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;A href="https://developer.mozilla.org/en-US/docs/JavaScript/Guide" rel="nofollow noopener noreferrer" target="_blank"&gt;https://developer.mozilla.org/en-US/docs/JavaScript/Guide&lt;/A&gt;&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 12 Dec 2021 02:20:56 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/how-to-make-the-feature-count-variable-global/m-p/616319#M57597</guid>
      <dc:creator>__Rich_</dc:creator>
      <dc:date>2021-12-12T02:20:56Z</dc:date>
    </item>
    <item>
      <title>Re: How to make the feature count variable global?</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/how-to-make-the-feature-count-variable-global/m-p/616320#M57598</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I sincerely thanks your help with my question and had solved my problem.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;This forum is lucky to have a person like yourself.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks again!&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Ben&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 27 Nov 2012 12:07:54 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/how-to-make-the-feature-count-variable-global/m-p/616320#M57598</guid>
      <dc:creator>BenLam</dc:creator>
      <dc:date>2012-11-27T12:07:54Z</dc:date>
    </item>
    <item>
      <title>Re: How to make the feature count variable global?</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/how-to-make-the-feature-count-variable-global/m-p/616321#M57599</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;I sincerely thanks your help with my question and had solved my problem.&lt;BR /&gt;&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;SPAN&gt;You're welcome, please mark as answer next to the post that helped you.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;This forum is lucky to have a person like yourself.&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;SPAN&gt;*blushes*&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;&lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 27 Nov 2012 12:21:38 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/how-to-make-the-feature-count-variable-global/m-p/616321#M57599</guid>
      <dc:creator>__Rich_</dc:creator>
      <dc:date>2012-11-27T12:21:38Z</dc:date>
    </item>
  </channel>
</rss>

