added some code

This commit is contained in:
umamahesh.b
2026-08-12 12:39:00 +05:30
parent f9d0cc46ba
commit 08c102e8f5
4 changed files with 46 additions and 2 deletions
+18 -1
View File
@@ -8,4 +8,21 @@ const mahesh:user = {
name: 'Umamahesh',
email: 'umamahesh.b',
age : 25
}
}
function isVoter() {
if(mahesh.age > 18) return console.log('He is eligible')
}
isVoter()
function numbers(a:number,b:number) : number{
console.log(a+b);
return a+b;
}
numbers(2,3)