We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
템플릿 리터럴은 내장된 표현식을 허용하는 문자열 리터럴을 의미한다.
문법:
`string text` `string text line 1 string text line 2` `string text ${expression} string text` tag`string text ${expression} string text`
여러줄:
console.log(`string text line 1 string text line 2`); // "string text line 1 // string text line 2"
표현식 삽입:
var a = 5; var b = 10; console.log(`Fifteen is ${a + b} and not ${2 * a + b}.`); // "Fifteen is 15 and // not 20."
중첩:
const classes = `header ${ isLargeScreen() ? '' : `icon-${item.isCollapsed ? 'expander' : 'collapser'}` }`;
Tagged Tamplages 참고
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Template Literals
템플릿 리터럴은 내장된 표현식을 허용하는 문자열 리터럴을 의미한다.
문법:
여러줄:
표현식 삽입:
중첩:
Tagged Tamplages 참고
The text was updated successfully, but these errors were encountered: