TypeScript Playground
Share
Learn
Sign In
Sign Up
FILES
src
script.ts
style.css
index.html
Items: 0
PACKAGES
Items: 0
script.ts
1
2
3
4
5
6
7
// Note: please restart the page if syntax highlig
hting works bad.
let
el
=
document
.
querySelector
(
'#header'
)
let
msg
:
string
=
'Hi friend, try edit me!'
el
.
innerHTML
=
msg
console
.
log
(
'it shows results as you type'
)
Console
Web View
?
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
Clear Logs
Clear on Run
Scroll to End
Restart
Ctrl + R
Hard Restart
Ctrl + ⇧ + R
Live View
Live View Delay
Loop Protection
Run on Opening
Deployment
Publish
https://typescript.playcode.io
Share to web
Share website with anyone
.playcode.io
Add custom domain
Need help to setup custom domain?
Click here
.
Zoom
White Background
100