Giter VIP home page Giter VIP logo

javascript-events-tutorial-exercises's Introduction

Event-Oriented Programming with JavaScript

By @alesanchezr and other contributors at 4Geeks Academy

last commit build by developers build by developers

This tutorial is part of a bigger group of tutorials about web development, this repository focuses only on JavaScript Events, you will learn Mouse Events, Keyboard events, Frame Events and how to react to those events to make your web application interactive.

Estas instrucciones estΓ‘n disponibles en πŸ‡ͺπŸ‡Έ espaΓ±ol πŸ‡ͺπŸ‡Έ

What you will learn during this tutorial:

  1. The first event that triggers on a website.
  2. Make your code react to user clicks on buttons.
  3. Make a counter that increases when the user clicks.
  4. Add event listeners.
  5. What is the event target?

Before we start... other related tutorials

  1. Introduction to HTML
  2. Introduction to CSS
  3. Introduction to JavaScript
  4. Introduction to The DOM
  5. Using events & The DOM ← You are here now πŸ”₯
  6. Object Oriented Programming

One click installation (recommended):

You can open these exercises in just a few seconds by clicking: Open in Codespaces (recommended) or Open in Gitpod.

Once you have VSCode open, the LearnPack exercises should start automatically. If exercises don't run automatically you can try typing on your terminal: $ learnpack start

Local Installation

Clone the repository in your local environment and follow the steps below:

  1. Make sure you have LearnPack, node.js version v14+, and jest v27 installed. This is the command to install the learnpack-cli and jest:
$ npm i learnpack [email protected] -g
  1. Clone or download this repository. Once you finish downloading, you will find a new folder with a subdirectory "exercises" that contains all the exercises within.

  2. Install the LearnPack plugin to test and compile vanillajs:

$ learnpack plugins:install learnpack-dom
  1. Start the tutorial/exercises by running the following command from the root of the project:
$ learnpack start

How are the exercises organized?

Each exercise is a small React application containing the following files:

  1. index.js: represents the entry JavaScript file that will be executed by the computer.
  2. index.html: represents the entry website.
  3. style.css: your website styles, they have to be imported from the index.html.
  4. README.md: contains exercise instructions.
  5. test.js: you don't have to open this file, it contains the testing script for the exercise.

Note: The exercises have automatic grading, but it's very rigid and strict, my recommendation is to not take the tests too serious and use them only as a suggestion, or you may get frustrated.

Contributors

Thanks goes to these wonderful people (emoji key):

  1. Alejandro Sanchez (alesanchezr), contribution: (coder) πŸ’», (idea) πŸ€”, (build-tests) ⚠️, (pull-request-review) πŸ‘€, (build-tutorial) βœ…, (documentation) πŸ“–

  2. Paolo (plucodev), contribution: (bug reports) πŸ›, (coder) πŸ’», (translation) 🌎

This project follows the all-contributors specification. Contributions of any kind are welcome!

This and many other exercises are built by students as part of the 4Geeks Academy Coding Bootcamp by Alejandro SΓ‘nchez and many other contributors. Find out more about our Full Stack Developer Course, and Data Science Bootcamp.

javascript-events-tutorial-exercises's People

Contributors

alesanchezr avatar anggiealava avatar charlytoc avatar dsilva06 avatar elviraqdp avatar hexbreak avatar josemoracard avatar kiddopro avatar lorenagubaira avatar sadiel0 avatar tommygonzaleza avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

javascript-events-tutorial-exercises's Issues

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    πŸ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. πŸ“ŠπŸ“ˆπŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❀️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.