FazBrowse GitHub Viewer
|
Trending
|
URL:
|
Home
Tools:
[Download Repo ZIP]
[View Raw Code]
[Original HTTPS Page]
CQS/JavaScript/3-mixed.js at master · HowProgrammingWorks/CQS · GitHub
Uh oh!
There was an error while loading.
Please reload this page
.
HowProgrammingWorks
/
CQS
Public
Notifications
You must be signed in to change notification settings
Fork
4
Star
6
Code
Issues
0
Pull requests
1
Actions
Projects
Security and quality
0
Insights
Additional navigation options
Code
Issues
Pull requests
Actions
Projects
Security and quality
Insights
Expand file tree
Breadcrumbs
CQS
/
JavaScript
/
3-mixed.js
Copy path
More file actions
More file actions
Latest commit
History
History
History
18 lines (14 loc) · 233 Bytes
Breadcrumbs
CQS
/
JavaScript
/
3-mixed.js
Copy path
File metadata and controls
18 lines (14 loc) · 233 Bytes
Raw
Copy raw file
Download raw file
Open symbols panel
Edit and raw actions
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
'use strict'
;
class
Adder
{
constructor
(
x
)
{
this
.
value
=
x
;
}
add
(
x
)
{
this
.
value
+=
x
;
return
this
.
value
;
}
}
const
a1
=
new
Adder
(
2
)
;
console
.
log
(
a1
.
add
(
7
)
)
;
console
.
log
(
a1
.
add
(
3
)
)
;
console
.
log
(
a1
.
add
(
8
)
)
;
Back
|
FazBrowse Home
|
New Git URL