Created
April 13, 2017 13:47
-
-
Save elgamine-dev/b713a2bde7423da891f9805965615757 to your computer and use it in GitHub Desktop.
app.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
window.onload = function start() { | |
'use strict'; | |
}; | |
var jose = function jose() { | |
dataset1.forEach(function myFunction(infos) { | |
console.log(infos); | |
beauvais(); | |
}); | |
}; | |
var beauvais = function beauvais() { | |
var afficherCarte = function afficherCarte(infos) { | |
carte = getElementById('carte_id'); | |
for (var prop in infos) { | |
// var elementAjoute = carte.appendChild(carte) + "informations[" + prop.prenom + "]: " + "<br>"; | |
console.log("objet " + prop + " = " + infos[prop]); | |
console.log(infos.prenom); | |
} | |
var afficherInfosUtilisateur = function afficherInfosUtilisateur(dataset1) { | |
document.appendChild("l'utilisateur se nomme : " + dataset1.nom + " " + dataset1.prenom + ", son âge est : " + dataset1.age + "c'est un(e) " + dataset1.genre); | |
}; | |
afficherCarte(); | |
}; | |
}; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment