Skip to main content

JavaScript Tester


Description

This tool lets you check if your local JavaScript code works correctly. The code you create here can later be inserted into an action and used in your template.

Works with only locally executed code.

How do you open it?

Through the Toolbar

Via the Toolbar


How to use the tool?

Window Overview

Window Overview

1. Paste the code you want to test into this field.
2. Select the format you want for using the code in a JavaScript action.
3. The result of your code’s execution will appear here.
4. Button to run (test) your code.
5. Exit the tester.


Example #1

Let’s say you want to use JavaScript and variables to do some math.

Math calculations

Before using your code in a project, it’s a good idea to run it in the tester and make sure it’s correct.

Run the tester

Now that you’ve made sure your code works, just replace the static values with your variables and add it to a JavaScript action.

Replace static values


Example #2

Suppose you need to open a web page and run some JavaScript code.

Example #2

  1. Go to the website.
  2. Paste the code you need into the tester and check if it works.
  3. Copy the working code and paste it into your project.
  4. Add a JavaScript action, using the format suggested by the tester.

So, along with checking your actual code before you use it in a project, ZennoDroid will also show you the correct format for adding it to the action.