Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

how to log message with replacing placeholders in the string in js

Placeholders:

%s String.
%d,%i Integer number.
%f Floating point number.
%o Object hyperlink.

//Eg.
console.log("generation 0:	%f, %f, %f", a1a1, a1a2, a2a2);
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #log #message #replacing #placeholders #string #js
ADD COMMENT
Topic
Name
4+5 =