JavaScript I
Javascript for Beginners
Embark on your coding journey with our JavaScript Beginner Course! Discover the core concepts of JavaScript, from variables and data types to basic operations. Unleash your potential to create interactive web experiences and build a strong foundation for web development. Join us to unlock the magic of code and shape the future of the web! 🚀💻
- Day 1
Concept:
Resources:
Assignments:
Please learn how to run the code on your computer.
Running JavaScript code on Windows, macOS, and Linux is relatively straightforward.
Windows
Using Node.js
- Install Node.js from the official website (https://nodejs.org/).
- Open the command prompt (search for "cmd" in the Start menu).
- Type `node` to open the Node.js interactive REPL (Read-Eval-Print Loop) where you can enter and run JavaScript code.
macOS
Using Terminal and Node.js
- Open the Terminal (search for it using Spotlight or find it in the Applications > Utilities folder).
- Install Node.js using a package manager like Homebrew (`brew install node`) or download it from the official website.
- Type `node` to open the Node.js interactive REPL where you can enter and run JavaScript code.
Linux
Terminal and Node.js
- Open the Terminal from the Applications menu.
- Install Node.js using a package manager appropriate for your Linux distribution (e.g., `sudo apt-get install nodejs` on Debian-based systems).
- Type `node` to open the Node.js interactive REPL where you can enter and run JavaScript code.
- Day 2
Concept:
Resources:
Assignments:
Write a program that prints the first 10 multiples of a given number. If the number is negative or zero, print an error message.
- Day 3
Concept:
Resources:
Assignments:
Write a function that converts temperature from Celsius to Fahrenheit. The formula for conversion is: `F = (C * 9/5) + 32`.
- Day 4
Concept:
Resources:
Assignments:
Create a simple webpage with a button. When the button is clicked, change the text of a paragraph to a new message.
- Day 5
Concept:
Resources:
Assignments:
Create an array of numbers. Use the `map()` method to double each number, and then use the `filter()` method to keep only the even numbers. Finally, use a loop to print the resulting array.
- Day 6
Concept:
Resources:
Assignments:
Create an object that represents a book. Include properties like `title`, `author`, `year`, and `isAvailable`. Then, use both dot notation and bracket notation to access and display the book's information.
- Day 7
Concept:
Resources:
Assignments:
Create a constructor `Rectangle` that takes `width` and `height` as parameters. Add a method `calculateArea()` that calculates and returns the area of the rectangle.
- Day 8
Concept:
Resources:
Assignments:
Create a function that fetches weather information for a specific city from the [OpenWeatherMap API](https://openweathermap.org/api). Display the temperature, weather conditions, and other relevant data in the console.
- Day 9
Concept:
Resources:
Assignments:
Create an `async` function that simulates fetching data from an API. Use `setTimeout` to simulate a delay. Handle both successful and failed outcomes using Promises.
- Day 10
Concept:
Resources:
Assignments:
Submit the Weather App