js'错误缺少半分离符号'使用简单功能
在JS中执行简单功能时,我会遇到一些错误。
let calls = function (){
console.log('Testing');
}
calls();
错误 :
错误缺少半分离
Platform : windows 10,
Editor : VS code 1.68.0
node : v16.14.2
将修复错误
let calls = function (){
console.log('Testing');
};
calls();
如果我使用;
:我可以正确使用i
,则 。它不是的特殊字符/a>发布。
I am getting some error while executing simple function in JS.
let calls = function (){
console.log('Testing');
}
calls();
Error :
error Missing semicolon semi
Platform : windows 10,
Editor : VS code 1.68.0
node : v16.14.2
Above error gets fixed if I use ;
:
let calls = function (){
console.log('Testing');
};
calls();
I can confirm i
in function
is correctly used & its not a special char as discussed in this post.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论