“F String JavaScript” Code-Antworten

F String JavaScript

`string text ${expression} string text`
Nervous Nightingale

String -Interpolation JavaScript

const age = 3
console.log(`I'm ${age} years old!`)
Drab Dogfish

F String JavaScript

const number = 123;
// ` ${somethign} `
`Here you can put any variable ${number} or expression ${number > 100 ? "big" : "small"}`
Cautious Crayfish

JavaScript String -Format

//

const firstName = 'john';
const lastName = 'smith';

const output = `name: ${firstName}, surname: ${lastName}`;
// name: john, surname: smith
Beautiful Bear

Ähnliche Antworten wie “F String JavaScript”

Fragen ähnlich wie “F String JavaScript”

Durchsuchen Sie beliebte Code-Antworten nach Sprache

Durchsuchen Sie andere Codesprachen