var temp = 1;

function pure(num) {
  return num + 2;
}

function notPure(num) {
  var something = 2;
  return num + something;
}
View Compiled
Run Pen

External CSS

This Pen doesn't use any external CSS resources.

External JavaScript

This Pen doesn't use any external JavaScript resources.