
The EventTarget method addEventListener() sets up a function that will be called whenever the specified event is delivered to the target.
Explore how to use addEventListener to respond to user actions, attach multiple event handlers to elements, and handle click and submit events in a to-do list app with local storage.
Learn to build a to-do form in JavaScript by preventing page refresh on submit, capturing user input with an event listener, and updating the console with the entered text.
Add quick css styling using a style tag in the head to improve the page’s appearance, targeting body, title, and to-dos with padding, font sizes, colors, borders, and bulletless lists.
Limit two cards per round by counting clicks with a counter. Store guesses and a counter as variables, and apply the selected class only when the count is below two.
Explore JavaScript variables as containers for data, declare them with var, practice camelCase for multiword names, and use the Chrome DevTools console to test, clear, and recall commands.
Explore JavaScript objects and object literal notation, distinguishing properties and methods from primitives. Learn to create and modify objects using dot and bracket notation, with a car example.
Create and edit arrays with square brackets, add and access values, save the Dodgers to a variable, and review array length and indexing.
Review arrays and their methods through a quiz format to reinforce the basics. Explore declaring arrays, accessing by index, and using push, pop, shift, unshift, concat, reverse, sort, and slice.
Learn how to use the call method to invoke a function with a specific this context and individual arguments, and compare it to apply, which accepts an array of arguments.
Master the spread operator to expand arrays, pass arguments, and combine arrays with ES5 and ES6 syntax. Practice with template literals and iterables like maps and sets.
Hi, I am a Front End Engineer and a Udemy Instructor with over 15,000 students and 5000+ 5 Star Reviews!
If you are looking to build interactive web pages with JavaScript then I have released a course just for you :)
Learn DOM methods and properties to use JavaScript to make your web page interactive.
On top of that this course will have two projects to get started with and many more on the way!
This isn't the only course you should ever take on learning to create interactive web pages with JavaScript but it should be your first!
JavaScript has become an essential web technology along with HTML and CSS, as most browsers implement JavaScript. Thus, You must learn JavaScript if you want to get into web development, and you must learn it well if you're planning on being a front-end developer or on using JavaScript for backend development.
What makes JavaScript important?
Here are five reasons:
It’s everywhere. It’s seen adoption from large companies (think: LinkedIn, Google, Netflix) that not only decided to use JavaScript, but to rewrite their entire applications using it. This isn’t a tiny investment. It displays a great deal of trust and faith in a language to choose the risk of rewriting an application over using an existing one. These risks are being taken by industry giants, and for good reason.
It’s flexible. It’s not just a front-end language. As a back-end language, JavaScript provides great scalability and performance because of its event-driven architecture, more so than many of its competitors from various languages. It also allows for a seamless transition for developers from the back end to make edits on the front end. JavaScript’s adaptability is something that draws more and more people each year. It can provide you with great interactions on the front end, asynchronous operations, and is not bound to any browser or operating system. Its possibilities are endless due to this dynamic and adaptable nature.
It’s easy to learn. With the only requirements being a text editor and a browser, anyone can start learning JavaScript. And while learning JavaScript, you’ll interact with HTML and CSS, which are the building blocks of any website.
Its community. Because of its popularity, the JavaScript community is heavily populated with experts, novices and resources. New ideas and libraries spring up daily to fix new problems, improve fixes of existing problems or introduce new methods. The community is constantly innovating, and through this JavaScript evolves.
It’s in demand. If you want to be a programmer, you need to learn JavaScript. Because it’s so widely used, you will be hard-pressed to find a job listing for a developer that does not require it. It’s the de facto language of the web, other than HTML/CSS of course.