String.format()
Returns the formatted text without printing it.
Syntax
String.format("format", ...)Description
Like printf formats but doesn't print to the screen, returns text.
Example
Loading editor…
Expected output
Score: 95
When to use?
Creating and storing text.