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.
Related Posts
The database environment has all of the following components except:
Related fields in a database are grouped to form a
A logical schema
The language used in application programs to request data from the DBMS is referred to as the
NULL is
In case of entity integrity, the primary key may be
In an E-R diagram attributes are represented by
Join The Discussion