Template literals and pathentheses-less function calls

前端 未结 0 1365
一生所求
一生所求 2021-01-16 14:43

I recently learned that ES6 allows to make function calls without parentheses when using a template literal as a parameter. E.g.

showstring`Hello World`;


        
相关标签:
回答
  • 消灭零回复
提交回复
热议问题