mirror of
https://github.com/freeCodeCamp/freeCodeCamp.git
synced 2025-12-23 21:04:36 -05:00
958 B
958 B
id, title, challengeType, dashedName
| id | title | challengeType | dashedName |
|---|---|---|---|
| 62a2509ba163e020bb9d84ea | Step 2 | 0 | step-2 |
--description--
Now you can start writing your JavaScript. Begin by creating a script element. This element is used to load JavaScript into your HTML file.
<script>
// JavaScript code goes here
</script>
--hints--
You should have a script element.
assert.isAtLeast(document.querySelectorAll('script').length, 2);
Your script element should have an opening tag.
assert.match(code, /<script\s*>/i);
Your script element should have a closing tag.
assert.match(code, /<\/script\s*>/i);
--seed--
--seed-contents--
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<link rel="stylesheet" href="./styles.css">
<title>RPG - Dragon Repeller</title>
--fcc-editable-region--
--fcc-editable-region--
</head>
<body>
<div id="game">
</div>
</body>
</html>