UNPKG
yash-nodeapp
Version:
latest (1.5.0)
1.5.0
sample nodejs application created as part of nodeJs training
yash-nodeapp
/
person.js
11 lines
(10 loc)
•
205 B
JavaScript
View Raw
1
2
3
4
5
6
7
8
9
10
11
class
Person
{
constructor
(
){
this
.
firstName
=
""
;
this
.
lastName
=
""
; }
getFullName
(
){
return
`
${
this
.firstName}
${
this
.lastName}
`
; } }
module
.
exports
=
Person
;