Basic JavaScript calculator (School project)