This page will illustrate differences between property and object parameters. In reality, this is a difference between non-object versus object parameters, or pass-by-value and pass-by-address parameters.
The function modify1 takes a property as its parameter and multiplies it by
2.
The function modify2 takes an object
as its parameter and multiplies its number property by 2.
Both of these functions return the doubled value (a number, not an object).
Enter values for number 1 and number 2 and then press the Display Results button.