Copy link to clipboard
Copied
I am using Acrobat Pro DC
for(var i=0;i < 5;i++) {
console.println(i);
}
undefined
Copy link to clipboard
Copied
Nothing is wrong with it... If you're not seeing an output it's probably because you're not executing it correctly.
You need to select the code with the mouse before running it. Otherwise it will only execute the line the cursor is on.
Copy link to clipboard
Copied
A common misconception is that “undefined” is an error message. That’s not the case, it just means that your code did not return anything. In this case, it is actually an indication that something did run, just not the portion of the code you wanted to execute.
Find more inspiration, events, and resources on the new Adobe Community
Explore Now