Features
Explore
About
Townie
AI
Docs
Pricing
Log in
Sign up
Log in
Sign up
add
@vtdocs
Public
Script
Fork
0 Likes
Code
Pull Requests
Forks
References
Dependencies
Versions
v1
Val Town is a social website to write and deploy JavaScript.
Build APIs and schedule functions from your browser.
Sign up with GitHub
add
Script
v1
Fork
1
2
3
4
export
const
add
=
(
opts
:
{
a
:
number
;
b
:
number
;
}
)
=>
opts
.
a
+
opts
.
b
;
October 23, 2023
Copy module URL
https://esm.town/v/vtdocs/add
Copy script tag
<script type="module" src="https://esm.town/v/vtdocs/add" />
Copy embed code
Copy link
Copy Val ID