Dashboard
Trending
Newest
Townie
AI
Editor
Docs
Log in
Sign up
greet
@tmalaher
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
greet
Script
v1
Fork
1
2
3
4
export
function
greet
(
name
:
string
)
{
name
=
name
||
"world"
;
return
"Hello, "
+
name
+
"!"
;
}
October 23, 2023
Copy module URL
https://esm.town/v/tmalaher/greet
Copy script tag
<script type="module" src="https://esm.town/v/tmalaher/greet" />
Copy embed code
Copy link
Copy Val ID