CS in Algebra: Contracts

Channel:
Subscribers:
445,000
Published on ● Video Link: https://www.youtube.com/watch?v=X8L259cdfns



Duration: 2:19
16,693 views
39


Welcome to the wonderful world of Contracts! Contracts help us document all the functions in our programming language. A contract includes a Name, Domain and Range. The Name describes the function. The Domain specifies what data types the function expects, in the order it expects them. And the Range gives us the data type the function returns, such as Number, String or Image.

Help us caption & translate this video!

http://amara.org/v/61QN/







Tags:
Code.org
computer science
code
Hour of Code