Giter Club home page Giter Club logo

ex-js-empty's Introduction

JavaScript exercises

Some basic exercises to discover JS.

Setup

Install node.js on your system, you need node 20 ! You can use nodesource builds to install node v20.

# clone the repository or download the exercises
# Move into the repository
cd ex-js
# Install dependencies
npm i
# Install playwright browser for e2e tests
npx playwright install

Simple syntax exercises

Launch the tests by typing npm run test, this will launch all tests, and rerun tests at each file change. You can also launch test from your IDE. You can browse tests, they are located in files ending with .test.js.

  1. Basic conditions
  2. Manipulating strings
  3. Maths
  4. Arrays
  5. Objects

Interacting with browser and dom exercises

First you need to launch de dev server npm run dev, to see your results in the browser. The dev server must be started for the tests to execute correctly. Launch the tests by typing npx playwright test, if you encounter difficulties, you can run the tests in ui mode, to see wich test fails : npx playwright test --ui.

  1. Dom basics
  2. Click events
  3. Input events
  4. Mouse and focus events
  5. Fetch data

ex-js-empty's People

Contributors

rignchen avatar

Watchers

 avatar

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.