const p1={
name:"Raphael",
age:21,
isMaried:false,
say:()=>{
console.log(`I'm ${p1.name} I'm ${p1.age} years old`);
if(p1.isMaried === false){
console.log(`I'm Celobator`);
}else{
console.log(`I'm maried`);
}
}
}
p1.say()
Preview:
downloadDownload PNG
downloadDownload JPEG
downloadDownload SVG
Tip: You can change the style, width & colours of the snippet with the inspect tool before clicking Download!
Click to optimize width for Twitter