当前位置:网站首页>[ES6] template string: `string`, a new symbol in es2015
[ES6] template string: `string`, a new symbol in es2015
2022-07-04 11:37:00 【Ruixin's blog】
explain : Through an example to illustrate the differences between the three :
Be careful : Symbol of template string [`] It's a button ~ The symbol under
describe :
There is one js Variables store the total number of people :var peopleSum = 88,
It is required to output this sentence in the following format : The total number of people is 88 people
console.log(‘ The total number of people is ’+peopleSum+‘ people ’);
console.log(“ The total number of people is ”+peopleSum+“ people ”);
console.log( The total number of people is ${peopleSum} people );
explain :string It's a template string ,ES2015 New symbols . In the template string var Is a placeholder for variables .
{} inside The expression is still js, Outside, too js .
边栏推荐
- 本地Mysql忘记密码的修改方法(windows)
- Local MySQL forgot the password modification method (Windows)
- Swagger and OpenAPI
- Login operation (for user name and password)
- Canoe: distinguish VT, VN and vteststudio from their development history
- [Yunju entrepreneurial foundation notes] Chapter II entrepreneur test 17
- OSI seven layer model & unit
- netstat
- Elevator dispatching (pairing project) ①
- VPS installation virtualmin panel
猜你喜欢

Usage of case when then else end statement

2021-08-09

Introduction of network security research direction of Shanghai Jiaotong University

Canoe - the third simulation project - bus simulation - 3-2 project implementation

OSI seven layer model & unit

Detailed array expansion analysis --- take you step by step analysis

Realize cross tenant Vnet connection through azure virtual Wan

Summary of Shanghai Jiaotong University postgraduate entrance examination module -- cryptography
![[Yunju entrepreneurial foundation notes] Chapter II entrepreneur test 6](/img/38/51797fcdb57159b48d0e0a72eeb580.jpg)
[Yunju entrepreneurial foundation notes] Chapter II entrepreneur test 6

Properties and methods of OS Library
随机推荐
Simple understanding of seesion, cookies, tokens
Ultimate bug finding method - two points
Btrace tells you how to debug online without restarting the JVM
QQ group collection
netstat
Failed to configure a DataSource: ‘url‘ attribute is not specified... Bug solution
Alibaba cloud server connection intranet operation
Summary of collection: (to be updated)
Common built-in modules
Daemon xinted and logging syslogd
(2021-08-20) web crawler learning 2
Digital simulation beauty match preparation -matlab basic operation No. 6
Games101 Lesson 8 shading 2 Notes
Analysis function in SQL
Introduction to canoe automatic test system
Usage of case when then else end statement
2021-11-02
Reptile learning 4 winter vacation series (3)
Heartbeat error attempted replay attack
R built in data set