MCPcopy Index your code
hub / github.com/Klerith/node-intro-javascript / getInfoUsuario

Function getInfoUsuario

async-await.js:52–63  ·  view source on GitHub ↗
( id )

Source from the content-addressed store, hash-verified

50
51
52const getInfoUsuario = async( id ) => {
53
54 try {
55 const empleado = await getEmpleado(id);
56 const salario = await getSalario(id);
57
58 return `El salario del empleado: ${ empleado } es de ${ salario }`;
59
60 } catch (error) {
61 throw error;
62 }
63}
64
65
66const id = 3;

Callers 1

async-await.jsFile · 0.85

Calls 2

getEmpleadoFunction · 0.70
getSalarioFunction · 0.70

Tested by

no test coverage detected