ch
Feedback
Javascript Node Js basic to Advance

Javascript Node Js basic to Advance

前往频道在 Telegram
1 176
订阅者
无数据24 小时
-27
-1130
帖子存档
Create compiler bot in mobile Run any language codes In hindi: Ab laptop ko kar do Tata bye bye gya 😂 https://youtu.be/352o8B9IikI?si=OSrhBU0mcFEkqILA

Apna khud ka Compiler bot run karna ab bahut simple hai Bas iocompiler lib install karo aur code run kardo 👇ye dekho poori details https://t.me/logicBots/207

Apna khud ka Compiler bot run karna ab bahut simple hai Bas iocompiler lib install karo aur code run kardo 👇ye dekho poori details https://t.me/logicBots/207

Dive into Python with our 1-month live class! Explore the basics, master syntax, and level up your coding skills. Join the Py
Dive into Python with our 1-month live class! Explore the basics, master syntax, and level up your coding skills. Join the Python adventure now! This course is specially designed for beginners, classes will be held in the evening. (Even a non-tech student can learn) Doubt Sessions, Assignment, everything at ₹399 month Live Class. Website Link- https://mentoraide.com/products Direct enrollment Link- https://payments.cashfree.com/forms/mentoraide-python-live-class Inquiry anytime at WhatsApp- +918445920626 10 students will get it at ₹299. Contact us on WhatsApp This is the best chance to upskill yourself. -Ad

Dive into Python with our 1-month live class! Explore the basics, master syntax, and level up your coding skills. Join the Py
Dive into Python with our 1-month live class! Explore the basics, master syntax, and level up your coding skills. Join the Python adventure now! This course is specially designed for beginners, classes will be held in the evening. (Even a non tech student can learn) Doubt Sessions, Assignment, everything at ₹499 month Live Class. Website Link- https://mentoraide.com/products Direct enrollment Link- https://payments.cashfree.com/forms/mentoraide-python-live-class Inquiry anytime at WhatsApp- +918445920626 This is the best chance to upskill yourself. -Ad

Everything related to coding 👇 https://t.me/addlist/2UhsQW_cGzkxMzg1

// currySum
function sum(a, b, c) {
    return a + b + c;
}

let curry = fn => (a => (b => (c => fn(a, b, c))));

let currySum = curry(sum);
console.log(currySum(1)(2)(3));

// fibonacci series by js
function fibonacci(num) {

    if (num == 1)
        return 0;

    if (num == 2)
        return 1;

    let num1 = 0;
    let num2 = 1;
    let sum;
    let i = 2;

    while (i < num) {
        sum = num1 + num2;
        num1 = num2;
        num2 = sum;
        i += 1;
    }

    return num2;
}
 

console.log("Fibonacci(5): " + fibonacci(5));

console.log("Fibonacci(8): " + fibonacci(8));

40+ java strings methods 👇 https://t.me/Java_Codes_Pro/91

Now it's discussion group is public you can ask any questions or discuss at any topic @Nodejs_group_pro Hindi / English

Numbers methods 👆

// 18. Number.prototype.toLocaleString()
(async () => {
  let { input } = require("jsshort");
  let num = parseFloat(await input("Enter a number: "));
  let locales = await input("Enter locales (optional): ");
  let options = { style: 'currency', currency: 'USD' };
  console.log(num.toLocaleString(locales, options));
})();

// 17. Number.prototype.valueOf()
(async () => {
  let { input } = require("jsshort");
  let num = parseFloat(await input("Enter a number: "));
  console.log(num.valueOf());
})();

// 16. Number.prototype.toString()
(async () => {
  let { input } = require("jsshort");
  let num = parseFloat(await input("Enter a number: "));
  let radix = parseInt(await input("Enter the radix (optional): "));
  console.log(num.toString(radix));
})();

// 15. Number.prototype.toPrecision()
(async () => {
  let { input } = require("jsshort");
  let num = parseFloat(await input("Enter a number: "));
  let precision = parseInt(await input("Enter the precision value: "));
  console.log(num.toPrecision(precision));
})();

// 14. Number.prototype.toFixed()
(async () => {
  let { input } = require("jsshort");
  let num = parseFloat(await input("Enter a number: "));
  let precision = parseInt(await input("Enter the number of decimal places: "));
  console.log(num.toFixed(precision));
})();

// 13. Number.NEGATIVE_INFINITY
console.log(Number.NEGATIVE_INFINITY);

// 12. Number.POSITIVE_INFINITY
console.log(Number.POSITIVE_INFINITY);