title: AJAX returning NaN
body: <p>I am using AJAX call to pass a value to PHP and retrieve a value from PHP. The output i am getting in the console is NaN i am not aware what this means. Please help me rectify this and get the value back using AJAX</p>
  
  <p>Script code:</p>
  
  <pre><code>window['channel']="OVERALL";
       $.ajax({
               method:"GET",
               url:"dash2.php",
               data:({channel:+channel}),
               success:function(data){
                      alert(data);
                      //console.log(data);
                      }
              });
  </code></pre>
  
  <p>PHP code:</p>
  
  <pre><code>&lt;?php
  
  $channel=$_GET['channel'];
  
  echo json_encode($channel);
  
  
  
  ?&gt;
  </code></pre>