Skip to content

Latest commit

 

History

History
60 lines (32 loc) · 2.4 KB

README.md

File metadata and controls

60 lines (32 loc) · 2.4 KB

Exercice JS #1

Il s'agit ici du premier formulaire de demande de soumission qui a été fait pour Rocket Elevators, mais malheureusement le programmeur avant vous y a laissé beaucoup de problème. Vous avez donc un bon travail de débuggage à faire!

Comme plusieurs employés travailleront à corriger ces problèmes, on vous demande de faire les modifications sur votre propre branche plutôt que sur le master.

À noter que seulement le fichier "quote.js" doit être corrigé. Le fichier HTML n'a pas besoin de modification.

Voici la liste des choses à corriger:

1- Le champ "Unit Price" affiche seulement le prix de la gamme Standard

2- Le champ "N. of Elevator" ne s'efface pas lorsqu'un champ mandatoire est effacé

3- On peut entrer un nombre négatif dans le champ "N. of Floors"

4- Le calcul Résidential affiche des "NaN"

5- Le calcul Commercial devrait se déclancher dès que le champ "N. of Elevator Shaft" est rempli

6- Le calcul Commercial affiche des "NaN"

7- Le calcul Corporate affiche des "NaN"

8- Le calcul Hybrid ne fonctionne pas du tout

9- Un calcul avec l'option Premium donne un prix erroné

10- Cliquer sur le bouton Standard ne semble pas refaire un nouveau calcul


JS Exercice #1

This is the first quote request form that was made for Rocket Elevators, but unfortunately the previous programmer has left you with a lot of trouble. So you have a good debugging job to do!

As several employees will work to correct these problems, you are asked to make the changes on your own branch rather than on the master.

Note that only the "quote.js" file needs to be corrected. The HTML file needs no modification. Here is the list of things to fix: 1- The "Unit Price" field displays only the price of the Standard range

2- The "N. of Elevator" field is not deleted when a mandatory field is emptied

3- You can enter a negative number in the "N. of Floors" field

4- The Residential calculation displays "NaN"

5- The Commercial calculation should be triggered as soon as the "N. of Elevator Shaft" field is filled

6- Commercial calculation displays "NaN"

7- The Corporate calculation displays "NaN"

8- Hybrid calculation does not work at all

9- A calculation with the Premium option gives an incorrect price

10- Clicking on the Standard button does not seem to redo a new calculation