Login or Sign Up to become a member!
LessThanDot Site Logo

LessThanDot

A Technical Community for IT Professionals

Less Than Dot is a community of passionate IT professionals and enthusiasts dedicated to sharing technical knowledge, experience, and assistance. Inside you will find reference materials, interesting technical discussions, and expert tips and commentary. Once you register for an account you will have immediate access to the forums and all past articles and commentaries.

LTD Social Sitings

Lessthandot twitter Lessthandot Linkedin Lessthandot facebook Lessthandot rss

Note: Watch for social icons on posts by your favorite authors to follow their postings on these and other social sites.

Highly Rated Users

Forum
No Posts Rated

Top 50
Given
Received

Forum Statistics

Users
Members:
1507
Members Online:
1
Guests Online:
4

Total Post History
Posts:
80036
Topics:
18306

7-Day Post History
New Posts:
6
New Topics:
2
Active Topics:
4

Our newest member
joegollakner

Other

FAQ
All times are UTC [ DST ]

Google Ads

Teaser: Chicken or Egg

Mind Boggling Puzzles, to keep that grey matter in shape...
Forum rules
Always post answers in a "Hidecode" tag, so that others have a chance to answer the question too.
Please wait...

Teaser: Chicken or Egg

Postby SQLDenis on Fri Mar 18, 2011 2:14 pm

So what will this display :lol:

  1. function chicken() {
  2.    return egg();
  3. }
  4.  
  5. function egg() {
  6.    return chicken();
  7. }
  8.  
  9. document.write( chicken() + " came first." );
User avatar
SQLDenis
LTD Admin
LTD Admin
LTD Gold - Rating: 3451LTD Gold - Rating: 3451LTD Gold - Rating: 3451LTD Gold - Rating: 3451LTD Gold - Rating: 3451
LTD Gold - Rating: 3451LTD Gold - Rating: 3451LTD Gold - Rating: 3451LTD Gold - Rating: 3451LTD Gold - Rating: 3451
LTD Gold - Rating: 3451LTD Gold - Rating: 3451LTD Gold - Rating: 3451
 
Posts: 21634
Joined: Wed Oct 10, 2007 6:43 pm
Location: Princeton, New Jersey, USA,World, Solar System, Milky Way, Universe and Beyond
Unrated

Re: Teaser: Chicken or Egg

Postby chrissie1 on Fri Mar 18, 2011 2:23 pm

Code is hidden, SHOW
pink fuzzy slippers
User avatar
chrissie1
Senior Guru
Senior Guru
LTD Gold - Rating: 2085LTD Gold - Rating: 2085LTD Gold - Rating: 2085LTD Gold - Rating: 2085LTD Gold - Rating: 2085
LTD Gold - Rating: 2085LTD Gold - Rating: 2085LTD Gold - Rating: 2085LTD Gold - Rating: 2085LTD Gold - Rating: 2085
LTD Gold - Rating: 2085LTD Gold - Rating: 2085
 
Posts: 9314
Joined: Wed Oct 10, 2007 7:18 pm
Location: Belgium
Unrated

Re: Teaser: Chicken or Egg

Postby Thirster42 on Fri Mar 18, 2011 3:55 pm

to understand recursion you must first understand
recursion to understand recursion you must first understand
recursion to understand recursion you must first understand recursion
Ask three DBAs a question, and you’ll get four different answers.

-Brent Ozar
User avatar
Thirster42
Guru
Guru
LTD Silver - Rating: 517LTD Silver - Rating: 517LTD Silver - Rating: 517LTD Silver - Rating: 517LTD Silver - Rating: 517
LTD Silver - Rating: 517LTD Silver - Rating: 517LTD Silver - Rating: 517
 
Posts: 4639
Joined: Tue Nov 11, 2008 5:49 pm
Location: Jefferson City, Mo
Unrated