AI‐11 - Code-the-Dream-School/intro-to-programming-2025 GitHub Wiki
- Create a folder called
jsat the same level as your index.html, readme.md, and your css folder. - Inside the js folder, create a JavaScript file called
index.js.
On the index.html file:
- Before the closing
</body>tag, insert a<script>element with a src attribute that specifies the relative path to your JavaScript file (i.e. js/index.js). - On the Skills
<section>element: After the<h2>element, add an empty unordered list<ul>element.
On the index.css file:
- Use flexbox or grid to organize and adjust the layout of your list of skills. Remember to include any adjustments in your media query sections.
On the index.js file:
- Using DOM manipulation, add a
footerchild element to yourindex.html. - Create a variable named
todayand assign it a new date object. - Create a variable named
thisYearand assign it the current year from your date object. Use a method to do this. - Create a variable named
footerand assign it the footer element by using DOM Selection to select the element from the DOM. - Create a variable named
copyrightand use it to create a new paragraph<p>element. - Set the inner HTML of your
copyrightelement to display your name and the current year. Use thecopyrightvariable and thethisYearvariable from earlier. - Append the copyright element to the footer using DOM Manipulation.
- As a stretch goal (optional): Use unicode to also include the copyright symbol ( © ) in your footer content.
- List your technical skills by creating an Array of String values and store it in a variable named
skills. - Create a variable named
skillsSectionand use DOM Selection to select the skills section by id. - Create a variable named
skillsListand use DOM Selection to query theskillsSection(instead of the entire document) to select the<ul>element you created earlier in this assignment. - Create a for loop to iterate over your skills Array.
- Inside the loop, create a variable named
skillto create a new list item<li>element. - Still inside the loop, use the skill variable to set the inner text to the current Array element.
- Still inside the loop, append the skill element to the skillsList element.