Bỏ qua nội dung

Lesson 38: Parameters

English

One procedure, many shapes

  • A procedure without parameters always does the same thing.
  • A parameter is a value you give to a procedure when you call it. The same code then draws a triangle, a square or a hexagon.
  • A function does a job and returns a value to the code that called it.

Words for this lesson

Word Meaning
procedure a named block of code that does a job
function like a procedure, but it returns a value
parameter a value passed in when the procedure is called
call run a procedure or function by its name

Đăng nhập hoặc tạo tài khoản

IGCSE, A-Level & AP