Skip to main content
added 5 characters in body
Source Link
Jamal
  • 35.2k
  • 13
  • 134
  • 238

You can test this at https://jsfiddle.net/shub01/kfehpeza/here - check the console for the returned string.

You can test this at https://jsfiddle.net/shub01/kfehpeza/ - check the console for the returned string.

You can test this here - check the console for the returned string.

removed console.log example because it is less well known, removed explanation in title; edited tags
Link
SirPython
  • 13.5k
  • 3
  • 38
  • 93

console.log()/printf() printf-style string formatter (to replace %s/d/i/f/o placeholders in a string)

deleted 23 characters in body; edited title
Source Link

console.log()/printf() style-style string formatter (to replace %s/d/i/f/o placeholders replacement functionin a string)

As part of a larger project I'm working on, I've made a function that aims to replicate, as best as I can, the placeholder part of the console.log() function usable in most browsers (also printf, AFAIK).

console.log()/printf() style %s/d/i/f/o placeholders replacement function

As part of a larger project I'm working on, I've made a function that aims to replicate, as best as I can, the placeholder part of the console.log() function usable in most browsers (also printf, AFAIK).

console.log()/printf()-style string formatter (to replace %s/d/i/f/o placeholders in a string)

As part of a larger project I'm working on, I've made a function that aims to replicate, as best as I can, the placeholder part of the console.log() function usable in most browsers.

Source Link
Loading