detailyang / detailyang/lua.js
Comment Uncaught SyntaxError
- Dominant language
- JavaScript
- Stars
- 0
- Forks
- 0
- PR merge metrics
- No merged PRs in 30d
Description
do
local x,y = 1,2
print(-x, (y+1)*2-5/x)
end
local x = {x = 1, y = 2}
print(x.x+x.x);
x.x = 2;
if x.x + 1 > 1000 then
print("haha")
elseif x.x + 1 > 2000 then
print("nini")
elseif x.x + 1 > 30000 then
print("zzzzz")
else
print("qqqqqq")
end
for i = 0, 5 do
print(i)
end
for k,v in pairs(x) do
print(k, v) --comment
end
local y = {4, 5, 6}
for k, v in ipairs(y) do
print(k, v)
end
local i = 10
while i > 0 do
print(i)
i = i - 1
end
repeat
i = i - 1
print(-i)
until i < 0
function foo(a)
return a * a
end
print(foo(3))
print(u)
print(undefined)
I tried the code above and it gave me SyntaxError because of a comment.
Contributor guide
No contributing guide indexed for this repository
Assessment
This issue has not been assessed yet.