Latest Tutorials

Learn about the latest technologies from fellow newline community members!

  • React
  • Angular
  • Vue
  • Svelte
  • NextJS
  • Redux
  • Apollo
  • Storybook
  • D3
  • Testing Library
  • JavaScript
  • TypeScript
  • Node.js
  • Deno
  • Rust
  • Python
  • GraphQL
  • React
  • Angular
  • Vue
  • Svelte
  • NextJS
  • Redux
  • Apollo
  • Storybook
  • D3
  • Testing Library
  • JavaScript
  • TypeScript
  • Node.js
  • Deno
  • Rust
  • Python
  • GraphQL

JavaScript Compilation vs Interpretation: A Deep Dive

In this comprehensive guide, we will demystify a fascinating aspect of JavaScript, one of the most widely-used programming languages today. The key question we will grapple with is: "Is JavaScript a compiled or interpreted language?" We'll probe into the complex depths of JavaScript code execution and the functioning of modern JavaScript engines. This understanding will equip you to grasp the finer dynamics of JavaScript, empowering you to evolve into a more proficient JavaScript developer. JavaScript is frequently labeled as an 'interpreted' language, a tag attributed to its execution style. However, this description isn't wholly accurate. While it doesn't generate an executable file like conventional compiled languages, JavaScript does undergo a compilation phase. This guide aims to shed light on this intriguing facet of JavaScript, thereby dispelling any prevailing misconceptions. Conventionally, 'compiled' languages such as C++ convert the source code into a binary executable file. This file can then be disseminated and executed. 'Interpreted' languages, on the contrary, don't yield an executable file. They rely on interpreters to read and execute the code in real-time.

    🔮 No More Guesswork. Introducing Student Reviews on Course Pages!🔍

    Have you ever found yourself teetering on the edge of purchasing a course? It's like you're on a suspenseful game show, faced with choosing a mystery door. It could be total junk or it might be GOLD! Exactly what your looking for. The stakes are high. Will it be the right choice? We’ve all been there, desperately scouring the internet for any snippet of information that might shed light on what lies ahead. Will the course be a game-changer or a glorified nap session? Without the wisdom of those who've gone before us, it's like navigating a jungle blindfolded — exciting, yes, but also potentially treacherous. We're here to banish uncertainty and save you valuable time, eliminating the mystery and suspense— although we apologize if you were looking forward to that adventure and countless hours of wasted time.

    Thumbnail Image of Tutorial 🔮 No More Guesswork. Introducing Student Reviews on Course Pages!🔍

    I got a job offer, thanks in a big part to your teaching. They sent a test as part of the interview process, and this was a huge help to implement my own Node server.

    This has been a really good investment!

    Advance your career with newline Pro.

    Only $30 per month for unlimited access to over 60+ books, guides and courses!

    Learn More

    A Comprehensive Guide to Custom Iterables in JavaScript

    This article embarks on a journey into the captivating world of JavaScript custom iterable objects. It's an important topic when there is a need to iterate over related objects or define specific iteration behaviors for certain objects. Iterables and iterators are frequently used in JavaScript coding. An iterable is an object that determines its iteration behavior, like the values looped over in a for...of construct, while an iterator is an object that maintains its current position in an iterable. Understanding these two principles, we can create custom iterable objects in JavaScript by implementing the Symbol.iterator method, which returns the iterator object that includes the next method.

      📢Your Exclusive Preview to the Next Learning Wave🏄‍♀️

      The uncertainty of what courses will be available in the future can be a real headache, especially when you're eager to stay ahead of the curve, expand your skill set or are planning to take advantage of your annual employer education reimbursement benefit. To help with this we've launched a brand new, "Coming Soon" section, right on our homepage! Stay in the loop with upcoming courses, giving you the clarity and confidence to plan your learning. It's like having a roadmap to success right at your fingertips!

      Thumbnail Image of Tutorial 📢Your Exclusive Preview to the Next Learning Wave🏄‍♀️

      JavaScript Memory Management: Misconceptions and Grasping the Reality

      In this comprehensive guide, we will traverse through the complexities of memory management in JavaScript. There are numerous myths regarding memory allocation in JavaScript; a prevalent one being primitive values are stored on the stack , while objects are housed on the heap . However, the reality is far more nuanced. We will debunk these misconceptions about memory allocation, explore the role of the JavaScript engine, and shed light on the concept of automatic garbage collection . Memory allocation in JavaScript extends beyond the simplistic dichotomy of stack and heap storage. The ECMAScript specification , which forms the framework for scripting languages including JavaScript, does not dictate specific rules for memory allocation or deallocation. Consequently, decision-making about memory management is left to the individual JavaScript engines. Distinct JavaScript engines may implement diverse strategies for memory management. For instance, in the V8 engine , utilized by Chrome and Node.js, virtually all values, including objects, arrays, numbers, and strings, are stored on the heap.