title: Passing variable into page.evaluate - PhantomJS
body: <p>Is it possible to pass variables in a page.evaluate in my case below?</p>
  
  <pre><code>function myFunction(webpage, arg1, arg2){
  
  var page = require('webpage').create();
  
  page.viewportSize = { width: 1920, height: 1080 };
  
  page.open(webpage, function (status){
  
      if (status == 'success') {
  
              page.includeJs("http://ajax.googleapis.com/ajax/libs/jquery/1.8.2/jquery.min.js", function(){
  
                  page.evaluate(function(){
  
                      arg = arg1 + arg2;
                      console.log(arg);
  
                  });
  
              });
  
      } 
  
      else { phantom.exit(); }
  
  });
  
  }
  </code></pre>
  
  <p>I tried several methods found on the internet but nothing actually impossible to get to its variables.</p>
  
  <p>Thank you in advance for your help :)</p>