please add async await, promises video links in the description.
@adarshkhatri993 Жыл бұрын
Idk why I come too much late on your channel😢... Your way of explanation and your videos are awesome man❤❤
@osamaxz5720Ай бұрын
thanks for explaining bro ❤ I'm a frontend developer now learning node js for backend so I'm familiar with pyramid of DOM or callback hell so what I do to solve this problem is promisfing the functions and use async await like to read file async I made this function async function readFileAsync(path, options) { return new Promise((res, rej) => fs.readFile(path, options, (err, data) => { if (err) { rej(err); } else { res(data); } }) ); } now to read specific file async function readTest() { try { const data = await readFileAsync('./test.txt', {encoding: 'utf-8'}) console.log(data) } catch(err) { console.log(err.message) } } and it's easy at is :)
@Miftah-Ul-Uloom Жыл бұрын
Thank you for your great effort. Please add async await, promises video links in the description.
@asiaahmadali Жыл бұрын
Thank you soo much for amazing explanation
@prakashkumarsingh9477 Жыл бұрын
the course i really like
@spatialnasir Жыл бұрын
Great explanation.
@godwin-jnrokoko9524 Жыл бұрын
Thank you for this epic course. Please add the link to the course on await and promise video course. Thanks in anticipation
@josyafritudemedia5512 ай бұрын
Bro using Mr jonas course on undemy?
@GhulamMustafa-kj4cvАй бұрын
if I want to write the first 5 or last five or I want to search into the file and then I want to write the specific lines of text which can be found anywhere in the file to other file how can i do this and what about buffers
@hassannouri9796 Жыл бұрын
❤❤❤
@vamsikrishna13442 жыл бұрын
Thank you
@AnilKumar-pb3pc5 ай бұрын
How to avoid Call back hell and where i can get those link pls share me if u had any one??
@mohammedabdulaziz36582 жыл бұрын
Thanks
@juanvasquezaldana8825Ай бұрын
pls, I think you forgot to add the async await and promises video links on the description! thank you