Skip to content

Latest commit

 

History

History
17 lines (10 loc) · 607 Bytes

what_are_the_placeholders_from_console_object.md

File metadata and controls

17 lines (10 loc) · 607 Bytes

What are the placeholders from console object?

The console object in JavaScript supports placeholders like %s, %d, and %o for formatted output. These placeholders allow you to format and display data in the console in a more readable way.

Example:

let name = 'Alice';
let age = 25;
console.log('Name: %s, Age: %d', name, age);  // Output: 'Name: Alice, Age: 25'

Tags: intermediate, JavaScript, Console