About 412,000 results
Open links in new tab
  1. JavaScript equivalent to printf/String.Format - Stack Overflow

    Mar 4, 2009 · I'm looking for a good JavaScript equivalent of the C/PHP printf() or for C#/Java programmers, String.Format() (IFormatProvider for .NET). My basic requirement is a thousand …

  2. JavaScript Functions - W3Schools

    A JavaScript function is defined with the function keyword, followed by a name, followed by parentheses (). Function names can contain letters, digits, underscores, and dollar signs …

  3. Functions - JavaScript | MDN - MDN Web Docs

    Mar 7, 2025 · Broadly speaking, JavaScript has four kinds of functions: For every kind of function, there are multiple ways to define it: In addition, there are special syntaxes for defining arrow …

  4. Printf or String.Format in JavaScript - GeeksforGeeks

    Nov 30, 2024 · The printf function and the String.Format() methods are two popular string formatting tools in other programming languages, but JavaScript does not have a built-in …

  5. Achieving printf() and String.Format() Functionality in JavaScript

    Oct 30, 2023 · As a JavaScript developer, you‘ve likely needed to format strings to display variables, format numbers, or populate templates. In many languages like C, C++, C#, and …

  6. JavaScript equivalent to printf/String.Format - JanBask Training

    Apr 17, 2025 · Are you wondering how to format strings in JavaScript similar to printf in C or String.Format in C#? JavaScript offers several ways to embed variables and format strings …

  7. JavaScript String Formatting: A Comprehensive Guide

    Custom functions provide flexibility for specific formatting needs, but require more code. String concatenation is a basic method, but can become verbose for complex formatting. Template …

  8. JavaScript Format String With Variables and Expressions

    Mar 23, 2022 · JavaScript allows you to format a string with variables and expressions from your code in three ways: Using string concatenation with + symbol Using template literals with …

  9. JavaScript Equivalent to Printf or String.Format - Delft Stack

    Oct 12, 2023 · printf is a function that we use in most programming languages like C, PHP, and Java. This standard output function allows you to print a string or a statement on the console. …

  10. correct way to format a javascript function - Stack Overflow

    Oct 16, 2011 · variable = function name {} // or variable = function {} The function keyword is in a function-expression context: it creates a new function-object and the resulting function-object …

  11. Some results have been removed
Refresh