I think I know the answer but... is there any way to prevent a global variable from being modified by later-executing ? I know global variables ar
try this:
const whatEver = 'Hello World!!!'; function foo(value){ whatEver = value; }
then you would call it like so...
Change Me First Then click me After: Should Be alert "Hello World!!!"