Giter Club home page Giter Club logo

javascript-dom-practice's Introduction

JavaScript DOM Execrises

1. Clone this template

Click on the Use this Template green button to clone a copy of this repoistory on your own Github account.

2. Open the template in Gitpod

This will install the prerequistes needed. If there are issues, please see the Troubleshooting section below.

If using Visual Studio Code:

Install all dependencies with yarn install

3. Login

In the directory with this readme.md file (or now as referred ), type in

node login.js

Enter your given Trent Global email address and password to log in. You have to relogin once every few days.

4. Doing the questions

Each question is in a folder by itself. The question description and what's expected will be in the readme.md file. Each question will have an index.html file and script.js file. Follow the instructions carefully in the readme.md file. Do not change the script.js file unnecessarily (there are special code at the end of the script.js file, don't touch it!)

Testing your output

In the terminal, type:

python3 - m http.server

And click on Ports (next to your Terminal) in the bottom, and select the globe icon. This will allow you to select the HTML file that you want to run.

5. Testing the Solutions

In the terminal, type in

node test-runner.js

And then select the question that you want to test.

Important for Windows Users

If you are running the test cases in Windows, ignore the ELIFECYCLE error message if your test case does not pass.

Also ignore the error message Jest did not exit one second after the test run has completed.

6. Getting new questions

To get new questions, open a NEW terminal and type in the terminal:

git fetch upstream
git merge upstream/main

If there are conflicts in script.js files, just use your original copies.

javascript-dom-practice's People

Contributors

extrakun 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.