Forums

The forums ran from 2008-2020 and are now closed and viewable here as an archive.

Home Forums JavaScript Issue On JavaScript if-else statement

  • This topic is empty.
Viewing 1 post (of 1 total)
  • Author
    Posts
  • #29888
    sithum
    Member

    Hi All !

    following is the code segment:

    if(document.images)
    {
    //some statements
    }

    Why "some statements" are executing eventhough if block is having non-boolean thing?

    Thanks in advance.

Viewing 1 post (of 1 total)
  • The forum ‘JavaScript’ is closed to new topics and replies.