
Discover how to set up JavaScript development with a browser and Visual Studio Code, create an index.html file, write and view your first script in the browser console.
Write your first JavaScript file, link it to an HTML page with a script tag, and explore alert and console.log to display messages and debug code.
Learn how to declare variables in JavaScript using var, assign memory locations, and store data types like strings, numbers, arrays, objects, and booleans, with examples in the console.
Learn how to declare and assign variables in JavaScript, reassign values, and manage objects versus strings as your code runs from top to bottom.
Master basic operations in JavaScript by creating variables like oranges and bags, performing arithmetic, concatenating with strings, and checking booleans via equality checks and string case sensitivity.
Learn to create, access, modify, and remove JavaScript array elements using push, index access, shift, and pop, with practical fruit examples.
Learn to create and modify objects in JavaScript by defining nested properties, accessing via dot and bracket notation, updating values, adding keys, and deleting properties.
Explore declaring and using JavaScript functions as variables, passing arguments, and performing calculations (such as price with a percentage), enabling reusable action blocks.
Learn to manipulate the DOM with JavaScript by creating elements, text nodes, and dynamic updates using document, window, and event triggers.
Learn how the return statement outputs a value from a function, such as a price with a dollar prefix, stops execution, and shows that code after return does not run.
Explain JavaScript scope by contrasting local variables inside a function with global variables, showing why percent becomes undefined outside its block and how to access it globally.
Implement JavaScript conditions using if, else if, and else to format prices by currency, returning dollars or euros, or a default for unknown currencies.
Learn to create a dynamic button and paragraph in the DOM using document.createElement and createTextNode, then use an event listener to show or hide content based on a condition.
Learn to use hasOwnProperty and indexOf to check an object's own properties and dynamically add them, with indexOf returning 0 when present and -1 when absent.
discover how loops in JavaScript repeat actions, using a for loop to increment age from 32 to 82 while logging each step and updating a counter.
Develop practical skills with forEach to iterate and extend a persons array, use filter to find matches, and apply map to add city Paris and age everyone by one year.
Use a for loop to iterate over an array of persons, extract each name and age, and render them into the HTML template dynamically in the DOM.
Build a live search filter in JavaScript for a list of people by typing in an input, capturing value, filtering results, and displaying them in the page using DOM manipulation.
Create factory functions in JavaScript to dynamically build person objects with name, age, and city, using arrow syntax and implicit returns, and manage object properties with methods like setName.
Learn how promises in JavaScript wait for actions, use resolve and reject to signal success or failure, and chain then, catch, and finally to handle results and errors.
Explore the evolution of JavaScript with ES6 and ES7, learning let and const, arrow functions, includes, destructuring, object keys and values, and the spread operator.
Express gratitude for completing the course and invite students to stay in touch, share work, and connect on LinkedIn with Githongo to hear how they reach their goals.
Do you want to learn JavaScript?
Are you a beginner in web development?
Do you want to have JS basics and then learn JavaScript framework (like React, Vue, Angular...)?
Or you would like to improve your minimum skills in less than two hours?
You are on the right course!
My name is Guillaume Duhan. As a Senior Front-End Developer and Tech teacher since 10 years now, I can assure you that JavaScript is the most popular language right now in web development.
This is why I propose you to spend this next 2 hours together to learn basics JavaScript. The main idea of this course is not to enter deep in JavaScript but just to learn the basics that JS Developers are using 85% of their time. So if you want to bootstrap your JavaScript level in 2 hours, this course is absolutely for you.
What is JavaScript?
A high-level definition
JavaScript is a scripting or programming language that allows you to implement complex features on web pages — every time a web page does more than just sit there and display static information for you to look at — displaying timely content updates, interactive maps, animated 2D/3D graphics, scrolling video jukeboxes, etc. — you can bet that JavaScript is probably involved. It is the third layer of the layer cake of standard web technologies, two of which (HTML and CSS) we have covered in much more detail in other parts of the Learning Area.
HTML is the markup language that we use to structure and give meaning to our web content, for example defining paragraphs, headings, and data tables, or embedding images and videos in the page.
JavaScript is a scripting language that enables you to create dynamically updating content, control multimedia, animate images, and pretty much everything else. (Okay, not everything, but it is amazing what you can achieve with a few lines of JavaScript code.)
What are we going to learn in this course?
In my opinion, JavaScript is a major programming language in tech ecosystem. If you want to code in JavaScript, you have to answer these questions:
What is JavaScript?
How does it interact with HTML?
What are variables?
What is assignment?
How to create my first operations?
What are Array & Objects?
What are Booleans?
How to create functions?
What is return and how to use it?
Explanation of scope, what are the most commons errors?
Use of JavaScript native features: loops, filter, map...
What are promises?
What ES6/ES7 provides as new features of JavaScript?
We will answer these question by practicing JavaScript in our code editor and browser. I decided to list the 20 most important points to know if you are/aim to develop in JavaScript. These points are my program.
At the end, you'll have a strong understanding of basics. This will help you to go deeper into JavaScript by learning another framework (React, Vue, Angular...). So if you are ready, let's go !