Tag: programming

  • Understanding Pass-by-value in PHP and JavaScript

    If you read my article on comparing PHP and JavaScript arrow functions, there is one relevant discussion that I did not touch in that article, as it is an important concept to grasp. In programming, when we pass a variable into a function, the function can either modify the original variable or create a copy…