Content deleted Content added
No edit summary |
No edit summary |
||
Line 1:
--this is a comment
--
p = {} -- empty table
Line 7:
return "Hello World"
end
--task2
p.Hi = function(frame)
anyName = frame.args.name or "Jimbo"
return "Hello from lua to my friend " .. anyName .. ".<br>" -- .. catanation
end
--task3
function p.temperature(frame)
cel = frame.args.celsius
fah = cel * 9 / 5 + 32
return fah
end
--task4
function p.temperature(frame)
cel = frame.args.celsius
fah = cel * 9 / 5 + 32
return "The temperature in Fahrenheit is " .. fah ".<br>"
end
|