"use strict";
var firstName = "Daniel";
function greet() {
console.log(this.firstName);
}
greet.firstName = "Dushyanth";
greet.greeting = function () {
console.log(this.firstName);
function fe() {
console.log("inside fe " + this.firstName);
}
fe();
// fe.bind(this)();
};
greet.greeting();
greet();
Curious case of “use strict”
About the author
A Full Stack Developer with a knack for creating engaging web experiences. Currently tinkering with GO.
Comments
Join the discussionNo comments yet. Be the first to comment.






