text: //const student1 = require ('./calculate');
  
  // Destructuración
  const {student, getPromedio} = require ('./calculate');
  console.log(student);
  
  let {name, age : edad, notes:{mathematics, english, program}} = student;
  console.log(edad);
  console.log(mathematics);
  
  /*
   * Require Native
  */
  
  const fs = require('fs');
  
  let createFile = (student) => {
      text = 'El nombre del estudiante es ' + name + '\n' +
          'ha obtenido un promedio de ' + getPromedio(mathematics, english, program);
  
      fs.writeFile('promedio.txt', text, (error) => {
          if (error) throw (error);
          console.info('Se ha creado el archivo');
      })
  }
  
  createFile(student);