Ajout exercices supplémentaires formation JS

This commit is contained in:
2015-04-01 22:05:05 +02:00
committed by Benjamin Bohard
parent ee0ae6d1be
commit b1cbcaefd3
3012 changed files with 363655 additions and 126 deletions

View File

@ -0,0 +1,5 @@
<html>
<body>
<script src="tableaux.js"></script>
</body>
</html>

View File

@ -0,0 +1,17 @@
/*
* Énoncé:
*
* Implémenter via une méthode d'itération d'un tableau une fonction
* permettant de récupérer la valeur maximum dans celui ci.
*/
var arr = [15, 20, 15, 16, -1, 4];
var methodeName = ''/*??*/;
var max = arr[methodeName](function(/*??*/) {
/* ?? */
}/*, ?? */);
console.log(max); // -> 20