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.
Task Answer - Video Linkβ
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>