Static and dynamic memory allocation in C programming.

Photo by ThisIsEngineering from Pexels

A computer’s memory is just a series of “buckets” that can hold numbers, characters, or boolean values.

When variables take the space of the computer’s memory, we called it allocation of memory.

Deallocations indicate that the computer has regained the space and that the variable can no longer be accessed.

Computer memory is divided into two parts; Stack memory and Heap memory.

  • Heap memory is greater than stack memory and is utilized in dynamic memory…

This is a simple article where you learn how to build a counter using JavaScript.

By the end of this article, you will learn how to create a counter, how to write conditions that change the color based on positive or negative numbers displayed, and also you will give more practice working with the DOM.

Some key concepts of JavaScript I will cover;

  • forEach()
  • addEventListener()
  • currentTarget property
  • classList
  • textContent

Also read:

Explore the State of Vue 3 Reactivity, JavaScript Reactivity and Composition API.

React.js Alternatives: Modern Web Frameworks and Lightweight JavaScript Libraries

Can Javascript Frameworks replace Ruby On Rails?

Best programming language as a beginner to learn in 2021

Photo by Christopher Gower on Unsplash

JavaScript is the world’s most popular programming language.

JavaScript is the programming language of the Web.

JavaScript is easy to learn.

So, it is important to know about the loops and iterations in JavaScript. Loops are a programming element that repeats a portion of code, a set number of times until the desired process is complete. Repetitive tasks are common in programming, and loops are essential to save time and minimize errors.

The types of loops provided in JavaScript are:

Vidushika Dasanayaka

Undergraduate of Faculty of Information Technology, University Of Moratuwa

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store