Mode:
Duration:
1
2
3
4
arr := #(1 2 3 4 5).
sum := 0.
arr do: [:x | sum := sum + x].
Transcript show: 'Sum: ', sum printString; cr.Coding works best on desktop or with an external keyboard.
arr := #(1 2 3 4 5).
sum := 0.
arr do: [:x | sum := sum + x].
Transcript show: 'Sum: ', sum printString; cr.Coding works best on desktop or with an external keyboard.
Sums elements of an array.
arr := #(1 2 3 4 5).
sum := 0.
arr do: [:x | sum := sum + x].
Transcript show: 'Sum: ', sum printString; cr.Smalltalk is a dynamically typed, object-oriented programming language known for its pure object model, live environment, and influential role in the development of modern OOP concepts. Everything in Smalltalk is an object, including numbers, classes, and code blocks.
Origin & Creator
Smalltalk was created in the 1970s at Xerox PARC by Alan Kay, Dan Ingalls, Adele Goldberg, and others as part of the development of object-oriented programming and graphical user interfaces.
Industrial Note
Smalltalk has been widely used in educational environments, early GUI-based applications, research prototypes, and some enterprise applications requiring highly dynamic and reflective systems.