This study plan is designed for individuals with experience in programming using Python, aiming to transition into front-end web development with JavaScript.
- Learn:
- JavaScript syntax: variables (
let,const,var), data types (string,number,boolean,undefined,null), and operators.
- JavaScript syntax: variables (
- Practice:
- Write a program to convert Celsius to Fahrenheit.
- Create a simple calculator (add, subtract, multiply, divide).
- Resources:
- Learn:
- Conditionals (
if,else if,else,switch). - Loops (
for,while,for...of).
- Conditionals (
- Practice:
- Write a program that checks if a number is even or odd.
- Create a loop that prints all numbers divisible by 3 from 1 to 50.
- Learn:
- Function declarations, expressions, arrow functions.
- Parameters and return values.
- Practice:
- Write a function that calculates the factorial of a number.
- Create a function to reverse a string.
- Resources:
- Learn:
- Arrays: methods like
.push(),.pop(),.map(),.filter(). - Objects: creating, accessing, and modifying properties.
- Arrays: methods like
- Practice:
- Create an array of numbers and calculate their sum.
- Write an object representing a student (name, age, courses) and a function to print their details.
- Learn:
- Select and manipulate HTML elements using
document.querySelector,getElementById. - Add event listeners.
- Select and manipulate HTML elements using
- Practice:
- Create a button that, when clicked, changes the text of an HTML element.
- Create a simple to-do list where items can be added dynamically.
- Resources:
- Learn:
- Callbacks, Promises, and
async/await. - Fetch data from an API (e.g., JSONPlaceholder).
- Callbacks, Promises, and
- Practice:
- Fetch and display a list of users from an API.
- Write a function that waits for 2 seconds before printing a message.
- Resources:
- Learn:
- HTML structure: semantic tags (
header,footer,article). - CSS basics: selectors, box model, flexbox.
- HTML structure: semantic tags (
- Practice:
- Create a simple portfolio webpage with sections for About, Skills, and Contact.
- Resources:
- Learn:
- Destructuring, template literals,
let/const, default parameters, spread/rest operators.
- Destructuring, template literals,
- Practice:
- Create a function that accepts any number of arguments and returns their sum.
- Use template literals to generate HTML dynamically.
- Resources:
- Learn:
- Handle form submissions.
- Validate user input using JavaScript.
- Practice:
- Create a contact form that validates fields (e.g., email format, required fields).
- Resources:
- Learn:
- React setup (via CDN or Create React App).
- JSX syntax, components, props, and state.
- Practice:
- Create a React app that displays a list of items fetched from an API.
- Resources:
- Learn:
- Basic Git commands:
clone,commit,push,pull.
- Basic Git commands:
- Practice:
- Initialize a Git repository for your project.
- Push your code to GitHub.
- Resources:
- Learn:
- CSS media queries for responsiveness.
- ARIA roles for accessibility.
- Practice:
- Make your portfolio page responsive for mobile and tablet devices.
- Resources:
- Project Ideas:
- Interactive To-Do List: A web app where users can add, edit, and delete tasks.
- Weather App: Use an API to fetch and display weather data for a given city.
- Resources:
By following this two-week study plan, you'll establish a solid understanding of JavaScript and front-end web development, building practical projects along the way. Best of luck, and enjoy your coding journey!