Preserved Topic: format('hello %s, welcome to the asylum!', 'newuser'); (Page 1 of 1) |
|
---|---|
Paranoid (IV) Inmate From: Lebanon |
posted 09-04-2001 09:10
Hello.... |
Paranoid (IV) Inmate From: your subconscious. (scared yet?) |
posted 09-04-2001 11:33
threep scratches his head, and asks: |
Paranoid (IV) Inmate From: Lebanon |
posted 09-04-2001 12:59
no no threep, |
Maniac (V) Mad Scientist From: New California |
posted 09-04-2001 18:35 |
Paranoid (IV) Inmate From: Lebanon |
posted 09-05-2001 09:01
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 |
posted 09-05-2001 14:49
Nope. You'll get used to string concatenation soon enough though. =) |
Maniac (V) Mad Scientist From: New California |
posted 09-05-2001 20:09
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 |
posted 09-06-2001 12:28
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)">
|