UNPKG
sagar-node-app
Version:
latest (1.5.0)
1.5.0
Sample nodeJS application created as part of NodeJS training 1st program
sagar-node-app
/
person.js
12 lines
(10 loc)
•
209 B
JavaScript
View Raw
1
2
3
4
5
6
7
8
9
10
11
12
class
Person
{
constructor
(
){
this
.
firstname
=
""
;
this
.
lastname
=
""
; }
getFullname
(
){
return
`
${
this
.firstname}
${
this
.lastname}
`
; } }
module
.
exports
=
Person
;