Functional Programming, JavaScript.
provided. Functions like: Date.now(); and var counter = 0; // global function incrementCounterTo(num) { return counter += num; } are not considered pure due to side effects that break referential transparency. Preserving Type Safety In order to talk about the issue of type safety, consider this