Learn JavaScript from Scratch
Learn the language of the web: variables, conditions, loops, functions, arrays, objects, the DOM, events, promises and fetch. Every lesson has runnable examples.
What you will learn
- Write programs with core JavaScript
- Change web pages with the DOM and events
- Work with arrays, objects and JSON
- Fetch data from APIs with async and await
Course syllabus
- Introduction to JavaScriptLearn what JavaScript is, where it runs, how to add it to a web page and how to use console.log…
- Variables and Data TypesLearn JavaScript variables with let and const, data types such as strings, numbers, booleans, null and undefined, and type conversion.
- Operators and ConditionalsLearn JavaScript arithmetic, comparison and logical operators, and control decisions with if, else if, else, switch and the ternary operator.
- Loops in JavaScriptLearn for, while, do while, for of and for in loops in JavaScript, plus break and continue, with practical examples.
- Functions in JavaScriptLearn how to write JavaScript functions: declarations, parameters, return values, arrow functions, default parameters and scope.
- Arrays and Array MethodsLearn JavaScript arrays and the most useful methods: push, pop, map, filter, reduce, find, sort and slice, with clear examples.
- Objects and JSONUnderstand JavaScript objects, properties, methods, destructuring and the spread operator, and how to convert data to and from JSON.
- DOM Manipulation and EventsLearn to select and change HTML elements with the DOM, respond to clicks and typing with event listeners and build…
- Asynchronous JavaScript: Promises, async/await and FetchUnderstand asynchronous JavaScript with callbacks, Promises and async/await, and fetch data from an API with proper error handling.