local function declares a name. return sends a value back.
Goal
Write greet and a units total.
local function greet(name)
return "Hello, " .. name
end
print(greet("Nairobi"))local function total(units, price)
return units * price
end
print(total(12, 40))local function label(city)
city = city or "Nairobi"
return city .. " kiosk"
end
print(label())
print(label("Kisumu"))local function add(a, b)
return a + b
end
print(add(8, 5))