RxJS Playground
Share
Learn
Sign In
Sign Up
FILES
package.json
script.js
Items: 0
PACKAGES
rxjs
8.0.0-alpha.3
Items: 0
script.js
1
2
3
4
5
6
7
import
{
fromEvent
,
scan
}
from
'rxjs'
;
fromEvent
(
document
,
'click'
)
.
pipe
(
scan
(
(
count
)
=>
count
+
1
,
0
)
)
.
subscribe
(
(
count
)
=>
console
.
log
(
'Clicked '
+
count
+
' times'
)
)
;
console
.
log
(
'Click to WEBSITE VIEW panel'
)
Console
?
1
Rename
Clone
Save
Delete
Export
Set Default
Set Favorite
Share
Save
Copy Link
Share to web
Allow editing
Online chat
Help & support guide
Report abuse
Report a bug
Roadmap
Changelog
Windows App
MacOS App
Linux App
Keyboard shortcuts
Privacy
PlayCode v2024.10.4
Restart
Ctrl + R
Hard Restart
Ctrl + ⇧ + R
Live View
Live View Delay
Loop Protection
Run on Opening
Clear Logs
Clear on Run
Scroll to End