Comments (25)
' (Single quote) 대신에 ~와 같이 적혀진 `(Grave accent)를 사용하셔야 합니다!
from learnjs.
// Hello, name! 관련한 예시 중에
function hello(name) {
return 'Hello ${name}!'
}
const result = hello('chunghyo')
console.log(result)
이렇게 했을 때, codesandbox 에서는 Hello ${name}! 이렇게 console에 결과값이 노출되는데요.
위의 예시에 나와 있는 로그로 정리를 해도 동일한 결과 값이 나옵니다.
from learnjs.
console.log(add(1, 2));는 지저분해서 안쓰는 건가요?
from learnjs.
작은따옴표('')가 아닌 백틱(``)을 쓰셔야합니당
from learnjs.
본문에 templete literal 백틱 `` 이 명시되어있으면 좋겠어요
from learnjs.
22.02.24
from learnjs.
템플릿 리터럴 / 화살표 함수
from learnjs.
22.03.22
from learnjs.
22.03.22
from learnjs.
2022.04.08
from learnjs.
22.05.24
from learnjs.
22.06.28
from learnjs.
22.07.06
from learnjs.
22.08.14
from learnjs.
22.08.19
from learnjs.
나중에 알아볼 내용 : 화살표 함수와 일반 function 으로 만든 함수와의 주요 차이점은 화살표 함수에서 가르키는 this 와 function 에서 가르키는 this 가 서로 다르다는 것
from learnjs.
템플릿리터럴이 예제 편집기 consolelog에서는 안먹는것 같습니다
from learnjs.
아 백틱으로 해결했습니다
from learnjs.
Related Issues (20)
- 02. Truthy and Falsy · GitBook HOT 10
- 01. 카운터 · GitBook HOT 5
- 3장. 자바스크립트에서 비동기 처리 다루기 · GitBook HOT 3
- 02. async/await · GitBook HOT 14
- 01. Hello JavaScript · GitBook HOT 25
- 이 분 최소 루팡 HOT 2
- 03. 단축 평가 논리 계산법 · GitBook HOT 7
- 1장. 자바스크립트 입문 · GitBook HOT 25
- 08. 반복문 · GitBook HOT 21
- 4장. HTML 과 JavaScript 연동하기 · GitBook HOT 3
- 2장. 알고있으면 유용한 자바스크립트 문법 · GitBook HOT 4
- 06. 비구조화 할당 (구조 분해) 문법 · GitBook HOT 5
- 07. 배열 · GitBook HOT 15
- 01. 삼항 연산자 · GitBook HOT 6
- Python 입문
- 04. 함수의 기본 파라미터 · GitBook HOT 1
- Computer Tutorial HOT 1
- 마무리 · GitBook HOT 3
- 02. 모달 · GitBook HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from learnjs.