Skip to content

saloskilo/100-Days-of-Coding-Questions

Repository files navigation

Sure! Here is a README file content for your "100 Days of Coding - Solving Questions" challenge initiated by Ashraib Ali, where you will solve at least 3 questions per day:

# 100 Days of Coding - Solving Questions

Welcome to my 100 Days of Coding challenge initiated by Ashraib Ali! In this challenge, I will solve at least 3 coding questions every day for the next 100 days. The goal of this challenge is to enhance my problem-solving skills, improve my understanding of various algorithms and data structures, and become a more proficient programmer.

## Challenge Overview

- **Duration**: 100 Days
- **Daily Goal**: Solve at least 3 coding questions per day
- **Technologies Used**:  I choosed to JavaScript 

## Daily Log

I will maintain a daily log of the questions I solve. This log will include the date, the questions solved, and links to the solutions.

### Day 1

**Date**: [2024-5-19]

**Q1** - Install Node.js, TypeScript and VS Code on your computer.

**Q2** - Personal Message: Store a person’s name in a variable, and print a message to that person. Your message should be simple, such as, “Hello Eric, would you like to learn some Python today?”

**Q3** - Name Cases: Store a person’s name in a variable, and then print that person’s name in lowercase, uppercase, and titlecase.

...

### Day 2

**Date**: [2024-5-20]

**Q4** - Famous Quote: Find a quote from a famous person you admire. Print the quote and the name of its author. Your output should look something like the following, including the quotation marks:

Albert Einstein once said, “A person who never made a mistake never tried anything new.”

**Q5** - Famous Quote 2: Repeat Exercise 4, but this time store the famous person’s name in a variable called famous_person. Then compose your message and store it in a new variable called message. Print your message.


**Q6** - Stripping Names: Store a person’s name, and include some whitespace characters at the beginning and end of the name. Make sure you use each character combination, "\t" and "\n", at least once. Print the name once, so the whitespace around the name is displayed. Then print the name after striping the white spaces.

...

### Day 3

**Date**: [2024-05-21]


**Q7** - Number Eight: Write addition, subtraction, multiplication, and division operations that each result in the number 8. Be sure to enclose your operations in print statements to see the results.

**Q8** - You should create four lines that look like this:
console.log(5 + 3)
Your output should simply be four lines with the number 8 appearing once on each line.

**Q9** - Favorite Number: Store your favorite number in a variable. Then, using that variable, create a message that reveals your favorite number. Print that message.

...

### Day 4

**Date**: [2024-05-22]

**Q10** - Adding Comments: Choose two of the programs you’ve written, and add at least one comment to each. If you don’t have anything specific to write because your programs are too simple at this point, just add your name and the current date at the top of each program file. Then write one sentence describing what the program does.

**Q11** - Names: Store the names of a few of your friends in a array called names. Print each person’s name by accessing each element in the list, one at a time.

**Q12** - Greetings: Start with the array you used in Exercise 11, but instead of just printing each person’s name, print a message to them. The text of each message should be the same, but each message should be personalized with the person’s name.

...

### Day 5

**Date**: [2024-05-23]

**Q13** - Your Own Array: Think of your favorite mode of transportation, such as a motorcycle or a car, and make a list that stores several examples. Use your list to print a series of statements about these items, such as “I would like to own a Honda motorcycle.”

**Q14** - Guest List: If you could invite anyone, living or deceased, to dinner, who would you invite? Make a list that includes at least three people you’d like to invite to dinner. Then use your list to print a message to each person, inviting them to dinner.

**Q15** - Changing Guest List: You just heard that one of your guests can’t make the dinner, so you need to send out a new set of invitations. You’ll have to think of someone else to invite:

- Start with your program from Exercise 14. Add a print statement at the end of your program stating the name of the guest who can’t make it.

- Modify your list, replacing the name of the guest who can’t make it with the name of the new person you are inviting.

- Print a second set of invitation messages, one for each person who is still in your list.
...

### Day 6

**Date**: [2024-05-24]

**Q16** - More Guests: You just found a bigger dinner table, so now more space is available. Think of three more guests to invite to dinner:
- Start with your program from Exercise 15. Add a print statement to the end of your program informing people that you found a bigger dinner table.

- Add one new guest to the beginning of your array.

- Add one new guest to the middle of your array. • Use append() to add one new guest to the end of your list.

- Print a new set of invitation messages, one for each person in your list.

**Q17** - Shrinking Guest List: You just found out that your new dinner table won’t arrive in time for the dinner, and you have space for only two guests.
- Start with your program from Exercise 16. Add a new line that prints a message saying that you can invite only two people for dinner.

- Remove guests from your list one at a time until only two names remain in your list. Each time you pop a name from your list, print a message to that person letting them know you’re sorry you can’t invite them to dinner.

- Print a message to each of the two people still on your list, letting them know they’re still invited.

- Remove the last two names from your list, so you have an empty list. Print your list to make sure you actually have an empty list at the end of your program.

**Q18** - Seeing the World: Think of at least five places in the world you’d like to visit.
- Store the locations in a array. Make sure the array is not in alphabetical order.

- Print your array in its original order.

- Print your array in alphabetical order without modifying the actual list.

- Show that your array is still in its original order by printing it.

- Print your array in reverse alphabetical order without changing the order of the original list.

- Show that your array is still in its original order by printing it again.

- Reverse the order of your list. Print the array to show that its order has changed.

- Reverse the order of your list again. Print the list to show it’s back to its original order.

- Sort your array so it’s stored in alphabetical order. Print the array to show that its order has been changed.

- Sort to change your array so it’s stored in reverse alphabetical order. Print the list to show that its order has changed.
...


### Day 7

**Date**: [2024-05-25]

**Q19** - Dinner Guests: Working with one of the programs from Exercises 14 through 18, print a message indicating the number of people you are inviting to dinner.

**Q20** - Think of something you could store in a array. For example, you could make a list of mountains, rivers, countries, cities, languages, or anything else you’d like. Write a program that creates a list containing these items.

**Q21** - They think of something you could store in a TypeScript Object. Write a program that creates Objects containing these items.


### Day 8

**Date**: [2024-05-26]

**Q22** - Intentional Error: If you haven’t received an array index error in one of your programs yet, try to make one happen. Change an index in one of your programs to produce an index error. Make sure you correct the error before closing the program.

**Q23** - Conditional Tests: Write a series of conditional tests. Print a statement describing each test and your prediction for the results of each test. Your code should look something like this:

- Look closely at your results, and make sure you understand why each line evaluates to True or False.

- Create at least 10 tests. Have at least 5 tests evaluate to True and another 5 tests evaluate to False.

**Q24** - More Conditional Tests: You don’t have to limit the number of tests you create to 10. If you want to try more comparisons, write more tests. Have at least one True and one False result for each of the following:
- Tests for equality and inequality with strings

- Tests using the lower case function

- Numerical tests involving equality and inequality, greater than and less than, greater than or equal to, and less than or equal to

- Tests using "and" and "or" operators

- Test whether an item is in a array

- Test whether an item is not in a array


### Day 9

**Date**: [2024-05-27]

**Q25** - Alien Colors #1: Imagine an alien was just shot down in a game. Create a variable called alien_color and assign it a value of 'green', 'yellow', or 'red'.

- Write an if statement to test whether the alien’s color is green. If it is, print a message that the player just earned 5 points.

- Write one version of this program that passes the if test and another that fails. (The version that fails will have no output.)

**Q26** - Alien Colors #2: Choose a color for an alien as you did in Exercise 25, and write an if-else chain.

- If the alien’s color is green, print a statement that the player just earned 5 points for shooting the alien.

- If the alien’s color isn’t green, print a statement that the player just earned 10 points.

- Write one version of this program that runs the if block and another that runs the else block.

**Q27** - Alien Colors #3: Turn your if-else chain from Exercise 5-4 into an if-else chain.
-  If the alien is green, print a message that the player earned 5 points.

- If the alien is yellow, print a message that the player earned 10 points.

- If the alien is red, print a message that the player earned 15 points.

- Write three versions of this program, making sure each message is printed for the appropriate color alien.
...

### Day 10

**Date**: [2024-05-28]

**Q28** - Stages of Life: Write an if-else chain that determines a person’s stage of life. Set a value for the variable age, and then:
- If the person is less than 2 years old, print a message that the person is a baby.

- If the person is at least 2 years old but less than 4, print a message that the person is a toddler.

- If the person is at least 4 years old but less than 13, print a message that the person is a kid.

- If the person is at least 13 years old but less than 20, print a message that the person is a teenager.

- If the person is at least 20 years old but less than 65, print a message that the person is an adult.

- If the person is age 65 or older, print a message that the person is an elder.

**Q29** - Favorite Fruit: Make a array of your favorite fruits, and then write a series of independent if statements that check for certain fruits in your array.
- Make a array of your three favorite fruits and call it favorite_fruits.

- Write five if statements. Each should check whether a certain kind of fruit is in your array. If the fruit is in your array, the if block should print a statement, such as You really like bananas!

**Q30** - Hello Admin: Make a array of five or more usernames, including the name 'admin'. Imagine you are writing code that will print a greeting to each user after they log in to a website. Loop through the array, and print a greeting to each user:
- If the username is 'admin', print a special greeting, such as Hello admin, would you like to see a status report?

- Otherwise, print a generic greeting, such as Hello Eric, thank you for logging in again.
...


### Day 11

**Date**: [2024-05-29]


**Q31** - No Users: Add an if test to Exercise 28 to make sure the list of users is not empty.
- If the list is empty, print the message We need to find some users!

- Remove all of the usernames from your array, and make sure the correct message is printed.

**Q32** - Checking Usernames: Do the following to create a program that simulates how websites ensure that everyone has a unique username.
- Make a list of five or more usernames called current_users.

- Make another list of five usernames called new_users. Make sure one or two of the new usernames are also in the current_users list.

- Loop through the new_users list to see if each new username has already been used. If it has, print a message that the person will need to enter a new username. If a username has not been used, print a message saying that the username is available.

- Make sure your comparison is case insensitive. If 'John' has been used, 'JOHN' should not be accepted.

**Q33** - Ordinal Numbers: Ordinal numbers indicate their position in a array, such as 1st or 2nd. Most ordinal numbers end in th, except 1, 2, and 3.
- Store the numbers 1 through 9 in a array.

- Loop through the array.

- Use an if-else chain inside the loop to print the proper ordinal ending for each number. Your output should read "1st 2nd 3rd 4th 5th 6th 7th 8th 9th", and each result should be on a separate line.

...

### Day 12

**Date**: [2024-05-30]

**Q34** - Pizzas: Think of at least three kinds of your favorite pizza. Store these pizza names in a array, and then use a for loop to print the name of each pizza.

- Modify your for loop to print a sentence using the name of the pizza instead of printing just the name of the pizza. For each pizza you should have one line of output containing a simple statement like I like pepperoni pizza.

- Add a line at the end of your program, outside the for loop, that states how much you like pizza. The output should consist of three or more lines about the kinds of pizza you like and then an additional sentence, such as I really love pizza!

**Q35** - Animals: Think of at least three different animals that have a common characteristic. Store the names of these animals in a list, and then use a for loop to print out the name of each animal.

- Modify your program to print a statement about each animal, such as A dog would make a great pet. 
- Add a line at the end of your program stating what these animals have in common. You could print a sentence such as Any of these animals would make a great pet!

**Q36** - T-Shirt: Write a function called make_shirt() that accepts a size and the text of a message that should be printed on the shirt. The function should print a sentence summarizing the size of the shirt and the message printed on it. Call the function.


### Day 13

**Date**: [2024-05-31]


**Q37** - Large Shirts: Modify the make_shirt() function so that shirts are large by default with a message that reads I love TypeScript. Make a large shirt and a medium shirt with the default message, and a shirt of any size with a different message.

**Q38** - Cities: Write a function called describe_city() that accepts the name of a city and its country. The function should print a simple sentence, such as Karachi is in Pakistan. Give the parameter for the country a default value. Call your function for three different cities, at least one of which is not in the default country.

**Q39** - City Names: Write a function called city_country() that takes in the name of a city and its country. The function should return a string formatted like this:

"Lahore, Pakistan"

Call your function with at least three city-country pairs, and print the value that’s returned.

...

### Day 14

**Date**: [2024-06-1]

**Q40** - Album: Write a function called make_album() that builds a Object describing a music album. The function should take in an artist name and an album title, and it should return a Object containing these two pieces of information. Use the function to make three dictionaries representing different albums. Print each return value to show that Objects are storing the album information correctly. Add an optional parameter to make_album() that allows you to store the number of tracks on an album. If the calling line includes a value for the number of tracks, add that value to the album’s Object. Make at least one new function call that includes the number of tracks on an album.

**Q41** - Magicians: Make a array of magician’s names. Pass the array to a function called show_magicians(), which prints the name of each magician in the array.

**Q42** - Great Magicians: Start with a copy of your program from Exercise 39. Write a function called make_great() that modifies the array of magicians by adding the phrase the Great to each magician’s name. Call show_magicians() to see that the list has actually been modified.


...

### Day 15

**Date**: [2024-06-2]

**Q43** - Unchanged Magicians: Start with your work from Exercise 40. Call the function make_great() with a copy of the array of magicians’ names. Because the original array will be unchanged, return the new array and store it in a separate array. Call show_magicians() with each array to show that you have one array of the original names and one array with the Great added to each magician’s name.

**Q44** - Sandwiches: Write a function that accepts a array of items a person wants on a sandwich. The function should have one parameter that collects as many items as the function call provides, and it should print a summary of the sandwich that is being ordered. Call the function three times, using a different number of arguments each time.

**Q45** - Cars: Write a function that stores information about a car in a Object. The function should always receive a manufacturer and a model name. It should then accept an arbitrary number of keyword arguments. Call the function with the required information and two other name-value pairs, such as a color or an optional feature. Print the Object that’s returned to make sure all the information was stored correctly.
... 

### Day 16

**Date**: [2024-06-3]  

**Q46** - Enhanced Laptop Object: Construct an object for a laptop including properties make, model, year, and a method describe() that logs a sentence about the laptop.

**Q47** - Array Destructuring: Given an array of objects representing different laptops, each with properties `make`, `model`, and `year`, use array destructuring to assign the first and second laptops to variables. Then, log these variables.

**Q48** - Combining Arrays with Spread Operator: Suppose you're comparing prices of two different sets of laptops. Use the spread operator to combine these arrays into a single array sorted in ascending order, then log the result.

... 

### Day 17

**Date**: [2024-06-4]

**Q49** - Function with Rest Parameters: Write a function that takes a rest parameter representing multiple hobbies. It should log each hobby with a statement saying you enjoy that hobby.

**Q50** - Multiline Template Literals: Use template literals to create a multiline string that describes your ideal day. Include at least three different activities.

**Q51** - Refactoring to Arrow Functions: Take a simple function that calculates the area of a rectangle and refactor it into an arrow function.

...

### Day 18

**Date**: [2024-06-5]


**Q52** - Make a Smartphone Object: Create a simple way to keep track of a smartphone's details. Include its brand, model, and other key features like how much storage it has, the size of its screen, and how long its battery lasts.

**Q53** - Pulling Apart a Nested Object: Imagine you have a list inside another list that shows what a computer programmer knows, like coding languages, tools, and software frameworks. Find a way to get three specific skills from this list and show them.

**Q54** - Making Flexible Object Keys: Learn how to set up a list where you can change the name of each section based on what you need at that moment, like adjusting labels based on user choices.

...

### Day 19

**Date**: [2024-06-6]

**Q55** - Double Numbers in an Array: Make a list of numbers. Then, use a trick to make a new list where each number is twice its original value.

**Q56** - Keep Only Strings: Given a mix of different types of items, make a new list that has only the words.

**Q57** - Find the Average Grade: Given a list of grades, calculate the average grade.
...

### Day 20

**Date**: [2024-06-7]

**Q58** - Write a simple program that can take lots of scores and find their average.

**Q59** - Add a Special Number: Make a program that creates custom adders. These adders can add a specific number to any other number you give them later.

**Q60** - Self-Running User Profile: Create a quick, self-setup profile for a user that can tell you the user's name and age.
...

### Day 21

**Date**: [2024-06-8]

# Day-21 of `100-Days-Of-Code` Challenge

**Q61** - Making Enums for Vehicles: Let's create categories for vehicles like cars, trucks, and motorcycles using enums, and show one example.

**Q62** - Making a Student Template: Create a blueprint for student information, including their name, age, and the classes they're taking, and then fill in this blueprint with an example student.

**Q63** - Shape Shifter: Write a program that can describe either a circle or a rectangle using a special type alias, including properties unique to each shape.

...

### Day 22

**Date**: [2024-06-9]

**Q64** - Combine Strings and Numbers: Write a function that merges a piece of text with a number. For example, if provided with "Age: " and 30, it should give back "Age: 30".

**Q65** - Determine the Remainder: Make a function that gets two numbers and shows the leftover from dividing them using the `%` sign. For example, `remainder(5, 2)` should give `1`.

**Q66** - Logical AND Verification: Create a function that checks two boolean (true or false) values. It should only say `true` if both are true, using the `&&` operator. For instance, `checkBothTrue(true, false)` should be `false`.

...

### Day 23

**Date**: [2024-06-10]


**Q67** - Arithmetic with Mixed Types: Write a function that takes two parameters: a number and a string that represents a number (e.g., "5"). Return their sum as a number.

**Q68** - Multiplying Decimals: Create a function that accepts two decimal numbers and returns their product. Round the result to two decimal places.

**Q69** - Dividing and Finding the Remainder: Write a function that divides two numbers and returns both the quotient and the remainder. Use an object to return both values.

...

### Day 24

**Date**: [2024-06-11]


**Question 70:** Understanding let in Loops: Write a function that uses a loop with the let keyword to print numbers from 1 to 5. Explain how the let keyword affects the visibility of the loop variable.

**Question 71:** Compare `let` and `const`: Create two examples where `let` allows reassignment but `const` does not. Try to reassign a `const`-declared variable and catch the error.

**Question 72:** Block Scope with `let` and `const`: Demonstrate block scope by creating a code block with `{}` that uses both `let` and `const`. Show how variables declared inside the block are not accessible outside of it.

...

### Day 25

**Date**: [2024-06-12]

**Question 73:** Assigning and Updating Variables: Create a function where you declare a variable using let and assign an initial value. Then, update its value within the same function and log both the initial and updated values.

**Question 74:** Swapping Variables: Demonstrate how to swap the values of two variables. Start with variables `a = 5` and `b = 10`, then swap their values so that `a` becomes `10` and `b` becomes `5`.

**Question 75:** Compound Assignment Operators: Use compound assignment operators to simplify arithmetic operations. Start with `x = 4` and perform a series of operations (addition, subtraction, multiplication, division) on `x` using compound operators.

...

### Day 26

**Date**: [2024-06-13]

**Question 76:** Function Parameters and Return Values: Create a function that takes two numbers as parameters, adds them together, and returns the result. Show how you can call this function and log the result.

**Question 77:** Default Parameters: Write a function that greets a user. It should take the user's name as a parameter and say hello. If no name is given, it should greet an anonymous user.

**Question 78:** Function Expressions vs. Function Declarations: Compare function expressions and declarations by creating one of each that performs the same task, such as squaring a number.

...

### Day 27

**Date**: [2024-06-14]

**Question 79:** Creating and Accessing Object Properties: Construct an object representing a car with properties for make, model, and year. Then, show how you can access the model property of the car.

**Question 80:** Updating Object Properties: Add a property named `color` to the existing car object, and then update the `year` property to `2021`. Show how to perform these operations.

**Question 81:** Iterating Over Object Properties: Write a function that takes an object as an argument and logs all of its properties and values.

...

### Day 28

**Date**: [2024-06-15]

**Question 82:** Find the Length of a String: Write a function that takes a string as an argument and returns the number of characters in the string.

**Question 83:** Converting to Upper and Lower Case: Create a function that takes a string, converts it to uppercase, then to lowercase, and logs both.

**Question 84:** Replacing Text in a String: Write a function that takes a sentence and replaces all instances of the word "JavaScript" with "TypeScript".

...

### Day 29

**Date**: [2024-06-16]

**Question 85:** Finding the Position of a Substring: Write a function that locates the first occurrence of the word "code" within any given string and returns its position.

**Question 86:** Checking for Text Presence: Create a function that checks if the word "JavaScript" is present in a given string. It should return `true` if found, otherwise `false`.

**Question 87:** Extracting a Substring: Demonstrate how to extract the first 10 characters from a string.

...

### Day 30

**Date**: [2024-06-17]

# Day-30 of `100-Days-Of-Code` Challenge

**Question 88:** Converting Strings to Numbers: Write a function that takes a string representation of a number (e.g., "123") and converts it into an actual number type.

**Question 89:** Rounding Numbers: Create a function that takes a number with decimals (e.g., `3.14159`) and rounds it to two decimal places.

**Question 90:** Generating Random Numbers: Write a function that generates a random number between 1 and 10, inclusive.

...

### Day 31

**Date**: [2024-06-18]

**Question 91:** Create an array of your three favorite fruits and add a new fruit to the end of the array.

**Question 92:** Write a function to remove the last element from an array and return the removed element.

**Question 93:** Find the index of "Banana" in an array of fruits and replace it with "Mango".

...

### Day 32

**Date**: [2024-06-19]

**Question 94:** Use the .map() method to create a new array that contains the length of each word from an array of words.

**Question 95:** Write a function that uses the .filter() method to return an array of numbers greater than 10.

**Question 96:** Demonstrate how to use the .reduce() method to calculate the sum of all numbers in an array.

...

### Day 33

**Date**: [2024-06-20]

**Question 97:** Write a function that returns the current date in the format "DD-MM-YYYY".

**Question 98:** Create a JavaScript snippet that calculates and logs how many days are left until New Year.

**Question 99:** Generate a date object representing your next birthday and log it to the console.

...

### Day 34

**Date**: [2024-06-21]

**Question 100:** Use the JavaScript Math object to find the square root of 144.

**Question 101:** Generate a random integer between 1 and 10.

**Question 102:** Calculate and log the absolute difference between the number -5 and 5.

...

### Day 35

**Date**: [2024-06-22]

**Question 103:** Write a function that returns a random boolean value, true or false.

**Question 104:** Create a function that generates a random hexadecimal color code.

**Question 105:** Simulate a dice roll using JavaScript and return a random integer between 1 and 6.

...

### Day 36

**Date**: [2024-06-23]

**Question 106:** Determine if a given year is a leap year using comparison operators.

**Question 107:** Write a condition using logical operators that checks if a number is divisible by both 2 and 3.

**Question 108:** Compare two strings to check if they are identical, ignoring case sensitivity.

...

### Day 37

**Date**: [2024-06-24]

**Question 109:** Write an if statement that logs "Good Morning" if the current time is before 12 PM.

**Question 110:** Create a function that assigns a grade (A, B, C, D, F) based on a student's score.

**Question 111:** Use an if-else-if chain to categorize a person's age group (child, teenager, adult).

...

### Day 38

**Date**: [2024-06-25]

**Question 112:** Create a Map that stores the names of countries as keys and their capitals as values. Add three countries to the Map.

**Question 113:** Write a function that checks if a Map contains a key for "Canada" and logs the capital if it exists.

**Question 114:** Iterate over a Map of student IDs and names, and log each pair to the console.

...

### Day 39

**Date**: [2024-06-26]

**Question 115:** Use a switch statement to log the days of the week based on a number (1-7).

**Question 116:** Create a switch case that matches several cases to the same code block, representing seasons.

**Question 117:** Implement a switch statement that evaluates an expression and uses the default case if none of the cases match.

...


### Day 40

**Date**: [2024-06-27]

**Question 118:** Write a loop that logs numbers from 1 to 10 to the console.

**Question 119:** Create a while loop that logs "Hello, World!" 5 times.

**Question 120:** Use a for...of loop to iterate through an array of your favorite movies and log each one.

...

### Day 41

**Date**: [2024-06-28]

**Question 121:** Implement a for loop that counts from 1 to 10 but skips number 5 using the continue statement.

**Question 122:** Use a while loop to count down from 10 to 1 and breaks the loop when it reaches 5.

**Question 123:** Create a loop that iterates through a string and stops when it finds the first vowel.

...

### Day 42

**Date**: [2024-06-29]

**Question 124:** Create a function inside an object that returns the object's own name property using the this keyword.

**Question 125:** Modify a method in an object to use the this keyword to access another property in the same object.

**Question 126:** Explain how the this keyword changes its value when used inside a nested function within a method.

...

### Day 43

**Date**: [2024-06-30]

**Question 127:** Convert a traditional function expression to an arrow function.

**Question 128:** Create an arrow function that takes multiple parameters and returns the product of all parameters.

**Question 129:** Explain how this behaves differently in arrow functions compared to traditional functions.

... 

### Day 44

**Date**: [2024-07-1]

**Question 130:** Explain how to export a function from one JavaScript file and import it into another file.

**Question 131:** Create two modules; one that exports a class, and another that imports the class and creates an instance.

**Question 132:** Discuss the difference between default and named exports in JavaScript modules.

...

### Day 45

**Date**: [2024-07-2]

**Question 133:** Write a JavaScript object and convert it into a JSON string.

**Question 134:** Take a JSON string and parse it into a JavaScript object.

**Question 135:** Explain how you can format a JSON string with proper indentation for readability.

...

### Day 46

**Date**: [2024-07-3]

**Question 136:** Use console.log() to debug and track the value of a variable inside a loop.

**Question 137:** Implement a try-catch block to handle potential errors in a block of code.

**Question 138:** Describe how to use breakpoints in browser developer tools to debug JavaScript code.

...

### Day 47

**Date**: [2024-07-4]

**Question 139:** List three reserved words in JavaScript and create a valid use case for each.

**Question 140:** Explain the error that occurs when trying to use a reserved word as a variable name.

**Question 141:** Discuss the significance of the await reserved word in asynchronous JavaScript.


...

### Day 48

**Date**: [2024-07-5]

**Question 142:** Create a Promise that resolves with "Hello, World!" after 2 seconds.

**Question 143:** Show how to use the .then() and .catch() methods to handle Promise resolution and rejection.

**Question 144:** Explain the use of the Promise.all() method with an example.

...

### Day 49

**Date**: [2024-07-6]

**Question 145:** Create a function that accepts a callback and invokes it with some arguments.

**Question 146:** Show an example of a callback function used to filter an array of numbers.

**Question 147:** Explain how to handle errors in a callback pattern.

...

### Day 50

**Date**: [2024-07-7]

**Question 148:** Demonstrate the use of the setTimeout() function to execute code after a delay.

**Question 149:** Explain the concept of the event loop in JavaScript with an example.

**Question 150:** Describe how asynchronous callbacks differ from synchronous code execution.

...

### Day 51

**Date**: [2024-07-8]

Read the following article: 
[Top 10 Programming Tips For Beginners](https://www.geeksforgeeks.org/programming-tips-for-beginners/);

...

### Day 52

**Date**: [2024-07-9]

Read the following article:
[An Introduction to JavaScript](https://javascript.info/intro)

Let’s see what’s so special about JavaScript, what we can achieve with it, and what other technologies play well with it. This article will give you a brief overview of JavaScript and its capabilities. It’s a great starting point for beginners and a good refresher for experienced developers.

...


### Day 53

**Date**: [2024-07-10]

Watch the following video to learn about Chrome DevTools:
[Fun & powerful: Intro to Chrome DevTools](https://www.youtube.com/watch?v=t1c5tNPpXjs&t=23s)

Chrome DevTools is a set of web developer tools built directly into the Google Chrome browser. DevTools can help you edit pages on-the-fly and diagnose problems quickly, which ultimately helps you build better websites, faster, watch the video to learn more about Chrome DevTools.

...


### Day 54

**Date**: [2024-07-11]

Read the following Articles and Code along with it:

[Hello World](https://javascript.info/hello-world)

[Variables](https://javascript.info/variables)

...


### Day 55

**Date**: [2024-07-12]

Read the following Articles and Code along with it:

[Data Types in JavaScript](https://javascript.info/types)

[Interaction: alert, prompt, confirm in JavaScript](https://javascript.info/alert-prompt-confirm)

...

### Day 56

**Date**: [2024-07-13]

Read the following Articles and Code along with it:

[Type Conversions in JavaScript](https://javascript.info/type-conversions)

[Operators in JavaScript](https://javascript.info/operators)

...

### Day 57

**Date**: [2024-07-14]

Read the following Articles and Code along with it:

[Comparisons in JavaScript](https://javascript.info/comparison)

[Conditional Operators: if, '?'(Ternary Operator) in JavaScript](https://javascript.info/ifelse)

...

### Day 58

**Date**: [2024-07-15]

Read the following Articles and Code along with it:

[Logical Operators in JavaScript](https://javascript.info/logical-operators)

[Nullish Coalescing Operator '??' in JavaScript](https://javascript.info/nullish-coalescing-operator)

...

### Day 59

**Date**: [2024-07-16]

Read the following Articles and Code along with it:

[Loops: while and for in JavaScript](https://javascript.info/while-for)

[The "switch" statement in JavaScript](https://javascript.info/switch)

...

### Day 60

**Date**: [2024-07-17]

Read the following Articles and Code along with it:

[Functions in JavaScript](https://javascript.info/function-basics)

[Function Expressions in JavaScript](https://javascript.info/function-expressions)

...

### Day 61

**Date**: [2024-07-18]

Read the following Articles and Code along with it:

[Arrow functions Basics in JavaScript](https://javascript.info/arrow-functions-basics)

[JavaScript specials in JavaScript](https://javascript.info/javascript-specials)

...

### Day 62

**Date**: [2024-07-19]

First understand what typescript is, and why we need it, then setup typescript using the following guides:

[TypeScript Introduction in Simple Words](./TS-Intro%20&%20Setup/typescript-intro.md)

[Setup TypeScript | Step-by-Step](./TS-Intro%20&%20Setup/typescript-setup.md)

...

### Day 63

**Date**: [2024-07-20]

Learn about TypeScript types by using the following guide and coding along with the examples provided in it:

[Multiple Types in TypeScript](./TS-Types/README.md)

...


## How to Contribute

If you have suggestions for questions to solve or improvements to my solutions, feel free to create an issue or submit a pull request. Let's learn and grow together!

## License

This project is licensed under the MIT License. See the [LICENSE](LICENSE) file for details.

---

Thank you for visiting my 100 Days of Coding challenge repository! I am excited to share my journey and progress with you. Stay tuned for daily updates!

Feel free to customize the content to better suit your specific preferences and needs. This template provides a structured way to document your daily progress and solutions.