Skip to content

Commit e13ce13

Browse files
authored
Merge pull request #154 from chvmvd/improve-js-playground
Improve JavaScript playground
2 parents 874ca83 + 007a95a commit e13ce13

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

src/pages/js-playground/index.tsx renamed to src/pages/javascript-playground/index.tsx

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,15 +17,13 @@ const defaultHTML = `\
1717
<link rel="stylesheet" href="./style.css" />
1818
</head>
1919
<body>
20-
<div id="greeting">Hello World!</div>
2120
<script src="./script.js"></script>
2221
</body>
2322
</html>\
2423
`;
2524
const defaultCSS = "";
2625
const defaultJS = `\
27-
const greeting = document.getElementById("greeting");
28-
greeting.textContent = "Hello JavaScript!";\
26+
document.write("Hello World!");\
2927
`;
3028

3129
export default function Home(): JSX.Element {

0 commit comments

Comments
 (0)