Javascript, HTML and CSS is like a car. HTML is the frame and structure of the car. CSS is the paint job and interior design. With Javascript being the engine.
I believe I have a strength in perseverance, even when it may get tough, I will keep looking for solutions to get to my end goal. A limitation I have ties back to my strength in a way, when something goes wrong I tend to stick at it until it's fixed. In a way this may seem good, I believe spending too long on one problem could keep me too narrow-minded.
A good example I found is using the example of making coffee.
Control flow is like following a step-by-step recipe. You make decisions at certain points to determine the next step.
Start: Decide if you want coffee. If yes, proceed. If no, end the process.
Choose Type: If you want espresso, use the espresso machine. If you want instant coffee, boil water and mix it.
Check Supplies: If you have coffee grounds, continue. If not, go buy some or stop.
Each decision point determines the "flow" of the process.
Loops happen when you repeat actions until a condition is met.
For example, stirring sugar into your coffee:
Add one teaspoon of sugar.
Stir the coffee.
Taste the coffee: If it’s sweet enough, stop. If not, go back to step 1.
The Document Object Model (DOM) is like a map of your webpage. It gives you an opportunity to interact with the Javascript and manipulate it dynamically. You can interact with the DOM using JavaScript to dynamically change content, styles, and even add or remove elements.
Arrays and objects both store data but in different ways. Arrays are like ordered lists, where each item has a number (index starting from zero) , making them great for lists like names or numbers. (photo) Objects store data in pairs where each piece of information is associated with a unique label, called a key. You access the data by using these keys, making objects great for organizing related details, like storing a person’s name, age, and address under different keys. (photo)
You can look at the function with a thinking of it being like a mini-program separated from the main program. This allows us to reduce a complicated program and separate it into smaller, more manageable chunks. Overall this reduces the complexity of the program.