I have the following code:
function leerTexto (nombre, callback) {
process.nextTick(function () {
var contenido = fs.readFileSync(nombre)
callback(content.toString())
})
}
Leaving aside what the code does, I would like to know why the callback argument can be put as '' a type of function '' or something like that inside the readText function. I do not need to know what it does or why it makes things work, the only thing I would like to know is how, or what form the '' callback (content.toString ()) '' is made in that way, since It's strange because I've never seen an argument like that before. In advance, thank you very much.