JSFiddle - React, Tailwind, and code Playground
by Yogesh Rathod
JavaScript
// Java script hoiesting
//*var foo = 1;
//function bar() {
//alert(foo)
// var foo = 10;
/*if (!foo) {
var foo = 10;
} */
// alert(foo);
//}
//alert(foo)
//bar();
var employee = {
'firstname': 'Yogesh',
'lastname' : 'Rathod',
'bday' : '01/01/2001',
'getFullName' : function() { alert('1000')},
'getBday' : function() { return this.bday;}
};
//return (this.firstname + this.lastname);
///employee.prototype.getFullName1 = function(){ alert('test)}
var e1 = new employee();
alert(e1.firstname)