evalJS allows you to run ANY javascript code in a "sandboxed" enviroment.

evalJS(javascript commands)

The returned value of your javascript command - formated as a string (always!)
Logs an error to the web console when any error in the code occurs.


    var test = function() {  
       return text = 2+2;  
    return test();  
//Returns "4"

Also check out my other assets!

End User Licence Agreement (EULA).

Required Modules

HTML5 Export

Version 1.0.0. Published August 5, 2014

Created with GameMaker: Studio v1.99.182

Age Rating: 4+

Average Rating

Your review

You can only review assets you've bought.


Garret D 28 May 2019

Doesn't work


Mors G 12 September 2018


Stefan K 14 March 2018

Not working

ReferenceError: Can't find variable: evalJS


jian z 17 January 2017

Not working

No js included in the project!
The author should check and fix the problem, it is wasting other people's time!


Harvey B 22 February 2015

Compile Errors

Threw compile errors when I attempted to build. When I looked, I found that there is no "JavaScript" file or any file included in this download other than the .gmx. Gave three stars because it may not have been the authors fault and may be down to the marketplace being buggy,

Package contents

Loading, please wait

What is the issue?

Back to Top