Days 92β98 of #100DaysOfCode
Object-Oriented Programming organizes code by grouping data (properties) and behavior (methods) into objects, making it reusable and structured.
β’ class β blueprint for objects
β’ constructor β sets properties
β’ methods β define behavior
Days 86 - 91 of #100DaysOfCode
In the example below, clicking the button updates the text inside the <p> tag.
document.getElementById("demo") selects the element
.innerText changes its text content
Days 86 - 91 of #100DaysOfCode
In the example below, clicking the button updates the text inside the <p> tag.
document.getElementById("demo") selects the element
.innerText changes its text content
Days 79 - 85 of #100DaysOfCode
Iβve been exploring DOM (Document Object Model). It represents an HTML document as a tree of objects that JavaScript can interact with and DOM Manipulation means using JavaScript to dynamically change content, structure, or styles on a webpage.
Days 79 - 85 of #100DaysOfCode
Iβve been exploring DOM (Document Object Model). It represents an HTML document as a tree of objects that JavaScript can interact with and DOM Manipulation means using JavaScript to dynamically change content, structure, or styles on a webpage.
Days 75-78 of #100DaysOfCode
call(), apply(), and bind() help control a functionβs βthisβ or pass arguments. In the example below:
call() passes arguments one by one
apply() passes arguments as an array.
bind() creates a new function with preset arguments.
Days 75-78 of #100DaysOfCode
call(), apply(), and bind() help control a functionβs βthisβ or pass arguments. In the example below:
call() passes arguments one by one
apply() passes arguments as an array.
bind() creates a new function with preset arguments.
Days 71β74 of #100DaysOfCode
After 3 months with @stechie_school, I wrapped up my JavaScript course and built a Capstone Project, a React-based e-commerce landing page: justbuy-rho.vercel.app using state management, filtering & reusable components.
Thank you to my tutors @LotusesK and Frank.
Source: github.com/Catherine-Awuleteβ¦
Days 71β74 of #100DaysOfCode
After 3 months with @stechie_school, I wrapped up my JavaScript course and built a Capstone Project, a React-based e-commerce landing page: justbuy-rho.vercel.app using state management, filtering & reusable components.
1
111
Days 71β74 of #100DaysOfCode
After 3 months with @stechie_school, I wrapped up my JavaScript course and built a Capstone Project, a React-based e-commerce landing page: justbuy-rho.vercel.app using state management, filtering & reusable components.
Days 67-70 of #100DaysOfCode
Like bind(), call() lets you set the βthisβ value for a function. bind() creates a new function you can call later while call() runs the function immediately with the given context and arguments.
Days 67-70 of #100DaysOfCode
Like bind(), call() lets you set the βthisβ value for a function. bind() creates a new function you can call later while call() runs the function immediately with the given context and arguments.
Days 65 & 66 of #100DaysOfCode
The bind() method creates a new function with a fixed βthisβ value, letting you control which object a function belongs to.
Without bind, calling greetFunc() would lose its βthisβ context. bind() ensures it always refers back to the object.
Days 65 & 66 of #100DaysOfCode
The bind() method creates a new function with a fixed βthisβ value, letting you control which object a function belongs to.
Without bind, calling greetFunc() would lose its βthisβ context. bind() ensures it always refers back to the object.
Days 57β64 of #100DaysOfCode
Itβs been a while since I last posted, I hit every developerβs nightmare: a faulty laptop with missing files and no GitHub backup π. During my downtime Iβve been reading about bind, apply, and call and will dive deeper in the coming days.
Days 57β64 of #100DaysOfCode
Itβs been a while since I last posted, I hit every developerβs nightmare: a faulty laptop with missing files and no GitHub backup π. During my downtime Iβve been reading about bind, apply, and call and will dive deeper in the coming days.
Days 55 & 56 of #100DaysOfCode
A closure happens when a function βremembersβ the variables from its outer scope even after that outer function has finished executing.
Days 55 & 56 of #100DaysOfCode
A closure happens when a function βremembersβ the variables from its outer scope even after that outer function has finished executing.
Days 53 & 54 of #100DaysOfCode
Iβve been reading on Advanced Functions and Closures.
Days 53 & 54 of #100DaysOfCode
Iβve been reading on Advanced Functions and Closures.
Technically Days 48-52 now but whoβs counting?(not me and neither are you)π. Thank you @stechie_school and my tutor @LotusesK π₯Ή
Technically Days 48-52 now but whoβs counting?(not me and neither are you)π. Thank you @stechie_school and my tutor @LotusesK π₯Ή
Days 46 & 47 of #100DaysOfCode
Block scope helps keep variables tightly contained and prevents accidental overwriting in other parts of your code by making a variable accessible only within the block {} where itβs declared.
This applies to variables declared with let and const.
Days 46 & 47 of #100DaysOfCode
Block scope helps keep variables tightly contained and prevents accidental overwriting in other parts of your code by making a variable accessible only within the block {} where itβs declared.
This applies to variables declared with let and const.
Days 44 & 45 of #100DaysOfCode
Iβve been reading on Block Scopes
Day 43 of #100DaysOfCode
Unlike the global scope, a variable has a function scope if it is only accessible within the function itβs declared. Any attempt to access it from outside the function results in an error.
Day 43 of #100DaysOfCode
Unlike the global scope, a variable has a function scope if it is only accessible within the function itβs declared. Any attempt to access it from outside the function results in an error.
Days 41 & 42 of #100DaysOfCode
A variable is said to have a global scope when it is declared outside a function and accessed anywhere in a code.
In the example below, the variable greeting is declared and accessed in and outside the function








