Skip to main content

Posts

Showing posts from August, 2024

Node Js #1

  NODE JS: Beginning #1 Here are the details for the code we used: var means: Any Variable  Console.Log : print something # 4 types of Compilers:  ⦁ Online Compiler ⦁ Vs Code ⦁ Browser Run ⦁ Terminal Here is the simple program to run in java: Var a = 5; Var b = 5; Var ans = a*b; Console.log(ans); Output:  25 ----------------------------------------------------- #Basics Of JS Will Be Using In Node JS: Variable Objects JSON Console Array Random If Else Loop Functions Prompt ___________________________________________________ We can use "let" instead of using "var" keyword to define variables Keyword : Const -> A const keyword is used to create datatypes constant. i.e.(That Cannot Be Changed)! syntax: const name = 'Ram'; and if we change it to Shyam  like:  name = 'Shyam' Error: It gives an error that constant variable cannpt be changed; If you want to know what types of data is stored in variable you can see .  Let's see example for tha...

A Bridge Between Beginning & End

Welcome Back!  In the heart of our bustling city, where pollution in the surrounding and environment rush through concrete canyons, there exists a bridge a relic of the past, a thread connecting our urban fabric. Maya, a woman, walks this bridge every morning, her footsteps echoing against the worn-out pavement. The bridge spans a murky river, its iron railings rusted and chipped. As Maya steps onto it, she gazes at the surrounding buildings. They loom like silent sentinels, their windows cracked, graffiti defacing their once-pristine facades. These structures, once symbols of progress, now bear the scars of neglect. Maya's eyes sweep across the landscape. She notices the shattered glass of a bus stop, the faded murals on the walls, and the litter strewn about a testament to our collective disregard for public spaces. The bridge itself groans under the weight of years, its concrete pockmarked and crumbling. But Maya is not a passive observer. She carries a small bag a makeshift too...

Linked List - Data Structure

Linked List A linked list is a linear data structure that does not store elements in contiguous memory locations, the elements in the linked list are linked using pointers. It is a collection of nodes in which each node stores data and a pointer that links to the next node to form a sequence of nodes. -> Linked List is a linear data structure which is a combination of Nodes. -> Nodes contain two parts i.e. data & address. Representation of a Linked List in C: A linked list is represented as a pointer to the first node where each node contains: Data:  Here the actual information is stored. Next:  Pointer that links to the next node. Advantages of a Linked List: Linked list is dynamic data structure it has memory allocation and de-allocation, which means that memory is only used when needed and not earlier in order to avoid waste. In linked list items are arranged in a linear fashion, new items can be inserted or removed as and when needed without affecting other items...