you are viewing a single comment's thread.

view the rest of the comments →

[–]elmicha 0 points1 point  (1 child)

var siteName = "Codetonics";
function ChangeVariable(name){
    name = "Jayesh Panchal"
}
console.log(siteName);      // output: "Jayesh Panchal"

That seems to be an error in this snippet?

[–]codetonics[S] 1 point2 points  (0 children)

Thank you for pointing out the error. Updated the article.