stop script javascript code example
Example 1: how to terminate a program in js
process.exit(1)
Example 2: java stop script
public void onClick() {
if(condition == true) {
return;
}
string.setText("This string should not change if condition = true");
}
Example 3: how to end a javascript program
{
-------
}