| [ Web Proxy ] |
| Viewing: https://raw.githubusercontent.com/Gulshid/JavaScript-Full-Course/main/function/impure_function.js | [Back] [Original] |
let total = 0;
function add(value)
{
total += value
}
add(5);
console.log(total); // 5
/*
Lecture # 48
Topic : Impure Function in JavaScript
Impure Function:
Changes external data or depends on outside values
*/
| Web Proxy Viewer | New URL | Original Page |