Register Now

Login

Lost Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

What is the observation made in the following JavaScript code?
if (!a[i]) continue;

What is the observation made in the following JavaScript code?
if (!a[i]) continue;
a) Skips the defined elements
b) Skips the existent elements
c) Skips the null elements
d) Skips the defined & existent elements

Answer: c
Explanation: The if loop in the above code checks whether the value of a[i] exists or not. For undefined, non existent and null values the if loop returns true.

Join The Discussion