How do you find your JavaScript Function length

Hello developers,

আজকে কথা বলব JS function length সম্পর্কে । সাধারণত আমরা জেনে থাকি যে JS a array এর length বের করা যাই । কিন্ত আজকে আমরা শিখব কিভাবে JS function length বের করে । নিচে code মাধ্যমে বঝান হল ঃ

function my_function() {

}

console.log(my_function.length);        

এখানে আমাদের length এর মান আসবে ০ ।

function my_function(num1, num2) {}

console.log(my_function.length);        

এখানে আমাদের length এর মান আসবে ২ । কারণ JavaScript এ number of parameter কে function এর number of length বলা হয়।

To view or add a comment, sign in

More articles by Ehasun Ul Islam Orko

  • 🚀 50 Modern MongoDB Tricks for a Superior Experience in 2026

    In the AI-first, high-scale world of 2026, MongoDB has evolved into a true powerhouse — with native Vector Search…

  • How to Schedule a Developer for Their Coding: Practical Framework for Deep Work & High Output

    In today’s fast-paced tech world, one of the biggest challenges for engineering managers, tech leads, and even…

  • 🚀 Is CI/CD really necessary for a Web Developer?

    As developers, we often focus only on writing code. But in the real world, development is not just about coding — it's…

  • Benefits of using MongoDB

    ১. ফ্লেক্সিবল স্কিমা (Flexible Schema): MongoDB ডকুমেন্ট-ভিত্তিক (JSON/BSON) স্টোরেজ ব্যবহার করে যেখানে প্রতিটি…

  • What is the difference between http vs https

    go to the link and read the article https://github.com/ehasun15019/difference-in-http-vs-https.

    1 Comment
  • What is the difference between find() and findOne() in backend technology

    Here the answer bellow: https://github.com/ehasun15019/diffrence-between-find--findOne-.

  • What is findOneAndUpdate method in mongodb

    হলো MongoDB (এবং Mongoose)-এর একটি method, যা ডাটাবেজে একটি ডকুমেন্ট খুঁজে বের করে সেটিকে আপডেট করতে ব্যবহার করা হয়। 🧠…

    2 Comments
  • What is TRUNCATE in SQL

    Hello Developers, আমরা যখন SQL এ CRUD Oparation চালাই তখন কোণ Table থেকে সব Data মুছে ফেলতে আমরা DELETE ব্যাবহার করে…

  • What is Unix Epoch

    প্রোগ্রামিং-এ সময় মাপার জন্য একটা নির্দিষ্ট শুরুর বিন্দু দরকার হয়। সেই বিন্দুটাকেই বলা হয় Unix Epoch। 📌 Unix Epoch =…

  • JavaScript Promise question solve

    q1. user will ask for a number between 0 - 9 and if the number is below 5 resolve if not reject Multiple promise or…

    1 Comment

Explore content categories