Life
The only constant in life is change
by Hitman666
JavaScript
// Blog post: https://www.nikola-breznjak.com/blog/daily-thoughts/const-life-change/
const life = change();
function change() {
return Math.random();
}
console.log(life);
console.log(life);
console.log(change());
console.log(change());
const life2 = function change() {
return Math.random();
}
console.log(life2());
console.log(life2());
// this would throw an undefined error, since the change function is not defined
// change2();
// change2();