JavaScript by Patrik

var variables can be re-declared and updated

This means that we can do this within the same scope and won't get an error.

var greeter = "hey hi";
var greeter = "say Hello instead";

and this also

var greeter = "hey hi";
greeter = "say Hello instead";

Comments

Leave a Comment

All fields are required. Your email address will not be published.