Functional/Error Catch in JINT #2167
Unanswered
RanjeetShinde
asked this question in
Q&A
Replies: 2 comments
-
Please use discussions for questions. |
Beta Was this translation helpful? Give feedback.
0 replies
-
It's not supposed to throw an exception to begin with. [][0]
// or
['a','b','c'][3] will return |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Hi @Jither @sebastienros @lahma,
In this script we are executing a loop in an array that we got from a split. In the same array we have 3 index values only, and we are starting the loop from the 3rd index that is not available in the array. Still, the script is executing.
How to catch such an exception in a script?
Script
var str = 'ranjeet shinde i am programer'
var array = str.split('i')
for (K = 3; K < 10; K++)
{
var curreentarray = array[K];
var CurrentK = K;
}
Beta Was this translation helpful? Give feedback.
All reactions