Backend Tutorial: Node.Js Modules with Examples | Internet Growth Tutorials #64



► Supply Code & Notes: https://codewithharry.com/movies/web-development-in-hindi-64
►This video is part of this Full Internet Growth in Hindi Course Playlist: https://www.youtube.com/playlist?record=PLu0W_9lII9agiCUZYRsvtGTXdxkzPyItg
►Click on right here to subscribe – https://www.youtube.com/channel/UCeVMnSShP_Iviwkknt83cww
►Checkout my English channel right here: https://www.youtube.com/ProgrammingWithHarry

Greatest Hindi Movies For Studying Programming:

►Be taught Python In One Video – https://www.youtube.com/watch?v=ihk_Xglr164

►Python Full Course In Hindi – https://www.youtube.com/playlist?record=PLu0W_9lII9agICnT8t4iYVSZ3eykIAOME

►C Language Full Course In Hindi –
https://www.youtube.com/playlist?record=PLu0W_9lII9aiXlHcLx-mDH1Qul38wD3aR&disable_polymer=true

►JavaScript Full Course In Hindi –
https://www.youtube.com/playlist?record=PLu0W_9lII9ajyk081To1Cbt2eI5913SsL

►Be taught JavaScript in One Video – https://www.youtube.com/watch?v=onbBV0uFVpo

►Be taught PHP In One Video – https://www.youtube.com/watch?v=xW7ro3lwaCI

►Django Full Course In Hindi –
https://www.youtube.com/playlist?record=PLu0W_9lII9ah7DDtYtflgwMwpT3xmjXY9

►Machine Studying Utilizing Python – https://www.youtube.com/playlist?record=PLu0W_9lII9ai6fAMHp-acBmJONT7Y4BSG

►Creating & Internet hosting A Web site (Tech Weblog) Utilizing Python – https://www.youtube.com/playlist?record=PLu0W_9lII9agAiWp6Y41ueUKx1VcTRxmf

►Superior Python Tutorials – https://www.youtube.com/playlist?record=PLu0W_9lII9aiJWQ7VhY712fuimEpQZYp4

►Object Oriented Programming In Python – https://www.youtube.com/playlist?record=PLu0W_9lII9ahfRrhFcoB-4lpp9YaBmdCP

►Python Knowledge Science and Large Knowledge Tutorials – https://www.youtube.com/playlist?record=PLu0W_9lII9agK8pojo23OHiNz3Jm6VQCH

Comply with Me On Social Media
►Web site (created utilizing Flask) – http://www.codewithharry.com
►Fb – https://www.fb.com/CodeWithHarry
►Instagram – https://www.instagram.com/codewithharry/
►Private Fb A/c – https://www.fb.com/geekyharis
Twitter – https://twitter.com/Haris_Is_Here

source

41 thoughts on “Backend Tutorial: Node.Js Modules with Examples | Internet Growth Tutorials #64”

  1. const fs = require("fs");

    let final = fs.readFileSync("file.txt", "utf-8");

    console.log(final);

    let name = "";

    const characters = ["m", "j", "d", "g"];

    for (let i = 0; i < 4; i++) {

    let random = Math.floor(Math.random() * characters.length);

    name += characters[random];

    }

    final = final.replace("File", "Game. This Is The Random Text: " + `${name}`);

    let file = fs.writeFileSync(`${name}`, final);

    console.log("Creating New File…");

    console.log(file);

    Generates a file with a random name on every run.
    file.txt: This Is The File

    1. Create file.txt and add the given text.
    2. Add this code to your JS.

    Reply
  2. Learning of the Day – 13thNov2023

    // Import the 'fs' module

    // const fs = require("fs");

    // Read the content of the file named 'hello.txt' synchronously with encoding 'utf-8'

    // const text = fs.readFileSync("hello.txt", "utf-8");

    // Output the content of the file to the console

    // console.log("The content of the file is:");

    // console.log(text);

    const fs = require("fs");

    let text = fs.readFileSync("hello.txt", "utf-8");

    text = text.replace("browser", "Harry");

    console.log("The content of the file is:");

    console.log(text);

    console.log("Creating a new file");

    fs.writeFileSync("harry.txt", text);

    Reply
  3. For everyone who is facing Error while runnig the code:
    In const xyz = require('fs');
    we can't change the parameter of that require('fs')
    the var name of function can be changed.

    Reply
  4. 5:34 if you are facing Error: ENOENT: no such file or directory,open problem

    1: remove “del.txt” in line 2.
    2: copy del.txt file path from file location.
    3: paste the path at “del.txt”position.
    4: and in path change all to \
    5: run successfully.

    Reply
  5. sir there's no-one who could have taught it any better. Thank you for this series and also for doing it for society i.e. for free, it now even inspires me to do something for this society to make it better. Thank you very much sir.

    Reply
  6. ہیری بھائی ویزوال اسٹوڈیو کوڈ کی بہت سی سیٹینگ خراب ہو گئی ہیں اِسی لیے وہ ٹھیک کرنا میرے لیے مُشقل بن گیا ہے اب آپ بتایں کیا کروں

    Reply

Leave a Comment