Challenge 2: Referentially-Transparent Function
Test your knowledge by writing code to check a given function's referential transparency.
Problem statement
Prove that the increment
function below is referentially transparent.
Try it yourself
Get hands-on with 1300+ tech skills courses.