Jump to content

Search the Community

Showing results for tags 'functions'.

  • Search By Tags

    Type tags separated by commas.
  • Search By Author

Content Type


Forums

  • General Discussion
    • Website Management and Coding
    • Technology and the Internet
    • Philosophy, Politics, and Science
    • Art and Entertainment
    • Other Discussion
  • HelioHost
    • Questions
    • Customer Service
    • How You Can Help
  • HelioNet
    • News
    • Contact HelioNet

Find results in...

Find results that contain...


Date Created

  • Start

    End


Last Updated

  • Start

    End


Filter by number of...

Joined

  • Start

    End


Group


AIM


MSN


Website URL


ICQ


Yahoo


Jabber


Skype


Location


Interests

Found 1 result

  1. Hello, I am trying to figure out a way to get a default function that is called if a function does not exist. For example var foo = { bar: function(){ console.log("Bar was called") }, unknown: function(){ console.log("Unknown was called") } } foo.bar(); // Should log "Bar was called" foo.biz(); // Should log "Unknown was called" Is there any way to do this cross browser, and if not then is there a way to do this in certain browsers? Thank you
×
×
  • Create New...