Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save elgamine-dev/b713a2bde7423da891f9805965615757 to your computer and use it in GitHub Desktop.
Save elgamine-dev/b713a2bde7423da891f9805965615757 to your computer and use it in GitHub Desktop.
app.js
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