var bla = "abc"; function sdc() { bla = "abbc"; } sdc(); //calling the function alert(bla); //alerts abbc