JS Control Statements

JS control statements are categorized into – (A) Decision Statements (B) Looping Statements (C) Jumping Statements (A) Decision/Conditional Statements: JavaScript supports the following decision statements:- (I) If statement (II) If-else statement (III) Else-if statement (IV) Switch case statement (I) If statement This statement executes a block of code if a Read more…

Loading

JS Operators

Introduction of JS Expression: An expression is a combination of operators and operands that can be evaluated. It may also include function calls which return values. For example –  x=23.5; z=x+y; x=”welcome”; Operators: Operators are symbols which is used to perform some specific operation. Types of JS Operators JavaScript has Read more…

Loading

JS DataTypes

JS Keywords/Reserve Words : These words cannot be used as JavaScript variables, functions, methods, loop labels, or any object names by the programmers in their programs. A list of all the reserved words in JavaScript are – abstract, boolean, break, byte, case, catch, char, class, const, continue, debugger, default, delete, Read more…

Loading

JS Introduction

History of JS JavaScript was designed by Brendan Eich, an American computer programmer in Netscape Communications Corporation. They created JavaScript in September 1995 and took only 10 days to develop the scripting language, then known as Mocha. The name JavaScript came from Netscape’s support of Java applets within its browser. The first stable Read more…

Loading

Password Tag

Example : A password box with show/hide the contents using eyeicon. Example : A password box with show/hide the contents using checkbox. Example : A password box to validate at least one uppercase, lowercase, number and at least 10 characters.

Loading

Scheduling Algorithms & its Type

Introduction Scheduling/Process/CPU Scheduling is a fundamental function of an operating system. Strictly, all computer resources are scheduled before use/processing properly. Since CPU is one of the primary/superior computer resources, therefore its scheduling is must and central.  CPU scheduling is the basis of operating system which supports multiprogramming concepts. Definition In Read more…

Loading

Semaphores

Introduction Semaphores were introduced by Edsger Dijkstra and are commonly used in operating systems and concurrent programming. Definition Semaphores provide a mechanism for coordinating concurrent processes or threads and protecting shared resources from simultaneous access, thereby avoiding race conditions and ensuring orderly execution.  In computer science, a semaphore is a Read more…

Loading

Critical Section

A critical section in an operating system is a section of code that must be executed automatically, i.e., it must be completed without interruption from other processes or threads. It cannot be interrupted by other threads or processes.  In an operating system (OS), a critical section refers to a portion Read more…

Loading