Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

intro-javascript/chapitre_5/js/minimum.js #9

Open
eliottealderson opened this issue Jun 15, 2017 · 1 comment
Open

intro-javascript/chapitre_5/js/minimum.js #9

eliottealderson opened this issue Jun 15, 2017 · 1 comment

Comments

@eliottealderson
Copy link

L'utilisation de Math.min() peut-elle être envisagée ?

function min(x, y){
    return Math.min(x, y);
}

console.log(min(4.5, 5)); // Doit afficher 4.5
console.log(min(19, 9)); // Doit afficher 9
console.log(min(1, 1)); // Doit afficher 1
@ChrishanZ
Copy link

Salut eliottealderson, ici on nous demande justement de passer outre l'utilisation du Math.min(); mais elle est tout a fait envisageable, bonne continuation !

Chris

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants