Code Monkey home page Code Monkey logo

javascript-fundamental's Introduction

JavaScript

JavaScript is a synchronous single-threaded programming language.

Synchronous :

  • In JavaScript, synchronous refers to the way certain operations are executed, particularly when it comes to functions and code execution flow. When a piece of code is synchronous, it means that it will execute line by line in a sequential manner. Each line of code must complete its task before the next line of code is executed.
  • সাধারণত সিঙ্ক্রোনাস মানে পরপর(একটির পর একটি ) কোন কাজ সম্পন্ন করাকে বোঝায়। যদি কোন কোড সিঙ্ক্রোনাস হয় তার মানে ওই কোড এর প্রতিটি লাইন একটি পর আরেকটি লাইন এক্সিকিউট হবে এবং একটি লাইনের কোড এর কাজ শেষ না হওয়া পর্যন্ত পরবর্তী লাইনের কোড এক্সিকিউট হবে না।

Single-threaded :

  • Being single threaded in JavaScript means that the programming language and the language's runtime environment (such as a web browser or Node.js) use only one main execution thread to complete all tasks. A thread is a sequence of instructions that can be executed independently by a CPU.

  • A fundamental feature of JavaScript is its single-threaded behavior. This means that, by default, JavaScript can only perform one operation at a time. When a JavaScript program runs, JavaScript executes tasks in a sequence and finishes the previous task before starting the new task.

  • জাভাস্ক্রিপ্টে সিঙ্গেল থ্রেডেড হওয়ার অর্থ হল প্রোগ্রামিং ল্যাঙ্গুয়েজেটি এবং ল্যাঙ্গুয়েজেটির রানটাইম এনভায়রনমেন্ট (যেমন ওয়েব ব্রাউজার বা Node.js) সকল কাজ সম্পন্ন করার জন্য শুধুমাত্র একটি প্রধান এক্সিকিউশন থ্রেড ব্যবহার করে। থ্রেড হচ্ছে কিছু ইন্সট্রাকশন এর সিকোয়েন্স বা ক্রম, যা একটি CPU দ্বারা স্বাধীনভাবে এক্সিকিউট বা কার্যকর করা যেতে পারে।

  • জাভাস্ক্রিপ্টের একটি মৌলিক বৈশিষ্ট্যই হল এর সিঙ্গেল থ্রেডেড আচরণ করা। এর মানে হল যে, ডিফল্ট ভাবে, জাভাস্ক্রিপ্ট একবারে শুধুমাত্র একটি অপারেশন করতে পারে। যখন একটি জাভাস্ক্রিপ্ট প্রোগ্রাম চলে, তখন জাভাস্ক্রিপ্ট একটি ক্রমানুসারে কাজগুলিকে করে এবং নতুন কাজ শুরু করার আগে পূর্বের কাজটি শেষ করে।

Topics

javascript-fundamental's People

Contributors

anik511 avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.