Created
August 19, 2020 04:01
-
-
Save megstang/258b44b1ceb30d22d1df7a0c39bb0d63 to your computer and use it in GitHub Desktop.
Revisions
-
megstang created this gist
Aug 19, 2020 .There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,43 @@ #### Example 10 ```ruby def print_variable(x) puts x end print_variable(4) ``` #### Example 11 ```ruby def print_variable(x) puts x end x = 4 print_variable(x) ``` #### Example 12 ```ruby def print_variable(x) puts x end print_variable(2) puts x ``` #### Example 13 ```ruby def print_variable(x) x = 4 puts x end print_variable(2) puts x ```