-- Homework 31, problem 1: Spot the difference.
--
-- The two snippets below do "the same thing" at a high level. Read
-- them carefully and list AT LEAST THREE differences in a multi-line
-- comment at the bottom of this file.

-- ---------- Plain Lua (terminal) ----------

local function greet(name)
    print("Hello, " .. name)
end

io.write("Your name: ")
local input = io.read()
greet(input)

-- ---------- Roblox Luau (Script in ServerScriptService) ----------

--[[
local Players = game:GetService("Players")

local function greet(name)
    print("Hello, " .. name)
end

Players.PlayerAdded:Connect(function(player)
    greet(player.Name)
end)
]]

-- Your differences go here:
--[[
1.
2.
3.
]]
