UNPKG
rishu-node-app
Version:
latest (1.5.0)
1.5.0
Sample node js application
rishu-node-app
/
person.js
14 lines
(12 loc)
•
219 B
JavaScript
View Raw
1
2
3
4
5
6
7
8
9
10
11
12
13
14
class
Person
{
constructor
(
) {
this
.
firstName
=
""
;
this
.
lastName
=
""
; }
getFullName
(
) {
return
`
${
this
.firstName}
${
this
.lastName}
`
; } }
module
.
exports
=
Person
;