![]() Preserved Topic: format('hello %s, welcome to the asylum!', 'newuser'); |
|
---|---|
Author | Thread |
Paranoid (IV) Inmate From: Lebanon |
![]() Hello.... |
Paranoid (IV) Inmate From: your subconscious. (scared yet?) |
![]() threep scratches his head, and asks: |
Paranoid (IV) Inmate From: Lebanon |
![]() no no threep, |
Maniac (V) Mad Scientist From: New California |
![]() |
Paranoid (IV) Inmate From: Lebanon |
![]() Yes Bugimus....It's I find better and makes your code more readable if you can just use something like sprintf() |
Lunatic (VI) Mad Scientist From: Massachusetts, USA |
![]() Nope. You'll get used to string concatenation soon enough though. =) |
Maniac (V) Mad Scientist From: New California |
![]() I double checked and I can't find anything for javascript like you ask. It's funny because if you think about it, printf, isn't part of the C language either. It is a function that someone wrote using C. So if you really wanted printf in javascript, you or someone else would have to write it. Don't worry, Slime's quite right about getting used to it. |
Paranoid (IV) Inmate From: Lebanon |
![]() i hate concating lots of strings...it makes my code unreadable.... code: <body onmousemove="status = jsprintf('current x:%s, y:%s', event.clientX, event.clientY)">
|