"use strict";
const Details = {
name: "" as string,
gender: "" as string,
role: "" as string,
languages: [] as Array<string>,
learning: "" as string,
linkedIn: "" as string,
displayInfo() {
console.log(`
Name: ${this.name}
Gender: ${this.gender}
Role: ${this.role}
Languages: ${this.languages}
Learning: ${this.learning}
LinkedIn: ${this.linkedIn}
`);
},
sayHello() {
console.log(`Thank you for the visit, see you in the repo section`);
},
};
const Info = {
name: "Rohit Somvanshi",
gender: "Male",
role: "Frontend Developer",
languages: ["hi_IN", "en_US"],
learning: "Scalability",
linkedIn: "https://linkedin.com/in/rohit-somvanshi",
};
Details.displayInfo.call(Info);
Details.sayHello();|
|
|


