Files
2023-12-27 02:46:24 -08:00

19 lines
479 B
HTML

<!doctype html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>ES Module with esm.sh</title>
</head>
<body>
Open your console
</body>
<!-- Import from a ES Module CDN -->
<script type="module">
import { getQuickJS } from "https://esm.sh/[email protected]"
const QuickJS = await getQuickJS()
console.log(QuickJS.evalCode("1+1"))
</script>
</html>