Skip to main content

Task 29: Javascript Practise - Rinse and Repeat

Affirmations for Confidence and Growth​

  • I am capable of learning anything I set my mind to.

  • I choose progress over perfection every day.

  • I have everything I need to succeed within me.

  • I am focused, consistent, and committed to my goals.

  • I believe in my ability to create positive change.

  • I welcome challenges as opportunities to grow.

  • I trust the process and take bold steps forward.

  • I am proud of how far I’ve come and excited for what’s next.

  • I deserve success, joy, and abundance in all areas of my life.

  • I am becoming the best version of myself every single day.

Test 1:​

<p id="message">Hello!</p>
<button onclick="changeText()">Click Me</button>

<script>
function changeText() {
document.getElementById("message").innerText = "You clicked the button!";
}
</script>


Test 2:​

<p id="secret">This is a secret message!</p>
<button onclick="toggleVisibility()">Toggle</button>

<script>
function toggleVisibility() {
const element = document.getElementById("secret");
element.style.display = element.style.display === "none" ? "block" : "none";
}
</script>