An expression is said to be referentially transparent if it can be replaced with its value without changing the behavior of a program (in other words, yielding a program that has the same effects and output on the same input)
https://en.wikipedia.org/wiki/Referential_transparency
This example is taken from the book "Functional Programming in Scala"
The following is referentially transparent:
scala> val x = "hello, world"