Top.Mail.Ru
? ?
Javascript's Journal
 
[Most Recent Entries] [Calendar View] [Friends View]

Wednesday, June 15th, 2005

Time Event
8:23a
Using eval(), debugging in general...
Hello again... I'm back for round 2. Before my other post starts to get off topic, I thought I'd start a new one... on debugging JS. What are your thoughts? Anyone have some tips or tricks?

I am not totally new to JS, but really haven't used it all that much up until recently. I used to program in C++ at my first job (about 3 years), then I quit there, and at the new job there is a scarcity of anything that cool... the closest I get is JS. But, I'm finding it is almost as fun- despite how tiny it is in comparison. Ok, enough with the boring stuff, here is something I thought was mega cool:

The eval() function. In conjunction with an <input/> or two, it seems to have endless possibilities! Let's say you had a couple text boxes (I like textarea's for this purpose).. named "_input" and "_output". Then you have a button, which will eval() the contents of "_input" and print them to "_output":

some codeCollapse )

Current Mood: Image amused

<< Previous Day 2005/06/15
[Calendar]
Next Day >>
About LiveJournal.com
Image