Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function pressbutton() {
- Promise.all([
- fetch("../data/lim-2018-03-pre-core-pw/users.json"),
- fetch("../data/lim-2018-03-pre-core-pw/progress.json"),
- fetch("../data/cohorts.json")
- ]).then(
- (DatosJsons) =>{
- return Promise.all(DatosJsons.map((Respuesta)=>{
- return Respuesta.json();
- }))
- }
- ).then(
- (RespuestaJson) => {
- //computeUsersStats(RespuestaJson[0],RespuestaJson[1],RespuestaJson[2]);
- console.log(RespuestaJson[0]);
- console.log(RespuestaJson[1]);
- console.log(RespuestaJson[2]);
- }
- )
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement