"use strict";
const Details = {
name: "" as string,
gender: "" as string,
role: "" as string,
currentlyOn: "" as string,
languages: [] as Array<string>,
willMoveTo: "" as string,
displayInfo() {
console.log(`
Name: ${this.name}
Gender: ${this.gender}
Role: ${this.role}
Currently On: ${this.currentlyOn}
Languages: ${this.languages}
Will move To: ${this.willMoveTo}
`);
},
sayHello() {
console.log(`Thank you for the visit, see you in the repo section`);
},
};
const Info = {
name: "Rohit Somvanshi",
gender: "Male",
role: "Frontend Developer",
currentlyOn: "NextJS",
languages: ["hi_IN", "en_US"],
willMoveTo: "NodeJS",
};
Details.displayInfo.call(Info);
Details.sayHello();
Highlights
- Pro
Pinned Loading
Something went wrong, please refresh the page to try again.
If the problem persists, check the GitHub status page or contact support.
If the problem persists, check the GitHub status page or contact support.