<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
  <channel>
    <title>javascript on netcup hosting blog</title>
    <link>https://en.netcup.nllk.net/blog/categories/javascript/</link>
    <description>Recent content in javascript on netcup hosting blog</description>
    <generator>Hugo -- gohugo.io</generator>
    <language>en</language>
    <lastBuildDate>Mon, 31 Aug 2026 00:00:00 +0000</lastBuildDate><atom:link href="https://en.netcup.nllk.net/blog/categories/javascript/index.xml" rel="self" type="application/rss+xml" />
    <item>
      <title>How do JavaScript closures work?</title>
      <link>https://en.netcup.nllk.net/blog/post/0071-javascript-closures/</link>
      <pubDate>Mon, 31 Aug 2026 00:00:00 +0000</pubDate>
      
      <guid>https://en.netcup.nllk.net/blog/post/0071-javascript-closures/</guid>
      
        <description>This article shows what a JavaScript closure is, why two counters from the same factory do not share state, why var in a loop gives you the same number three times, and what a closure keeps alive.</description>
      
    </item>
    
    <item>
      <title>How to convert a string to a boolean in JavaScript</title>
      <link>https://en.netcup.nllk.net/blog/post/0077-javascript-string-to-boolean/</link>
      <pubDate>Mon, 31 Aug 2026 00:00:00 +0000</pubDate>
      
      <guid>https://en.netcup.nllk.net/blog/post/0077-javascript-string-to-boolean/</guid>
      
        <description>This article shows why Boolean(&#34;false&#34;) is true, what JSON.parse does to &#34;1&#34; and &#34;yes&#34;, and how to write a converter that decides what unknown input means instead of guessing.</description>
      
    </item>
    
    <item>
      <title>How to create a UUID in JavaScript</title>
      <link>https://en.netcup.nllk.net/blog/post/0075-javascript-uuid/</link>
      <pubDate>Mon, 31 Aug 2026 00:00:00 +0000</pubDate>
      
      <guid>https://en.netcup.nllk.net/blog/post/0075-javascript-uuid/</guid>
      
        <description>This article shows how to generate a UUID with crypto.randomUUID, what the version and variant digits mean, why the Math.random one-liner is not a substitute, and why randomUUID is undefined on plain http.</description>
      
    </item>
    
    <item>
      <title>How to deep clone an object in JavaScript</title>
      <link>https://en.netcup.nllk.net/blog/post/0079-javascript-deep-clone/</link>
      <pubDate>Mon, 31 Aug 2026 00:00:00 +0000</pubDate>
      
      <guid>https://en.netcup.nllk.net/blog/post/0079-javascript-deep-clone/</guid>
      
        <description>This article shows what structuredClone keeps that the JSON round-trip destroys, what structuredClone silently drops, and a timing where the JSON version is the faster one.</description>
      
    </item>
    
    <item>
      <title>How to include a JavaScript file in another JavaScript file</title>
      <link>https://en.netcup.nllk.net/blog/post/0073-javascript-include-another-file/</link>
      <pubDate>Mon, 31 Aug 2026 00:00:00 +0000</pubDate>
      
      <guid>https://en.netcup.nllk.net/blog/post/0073-javascript-include-another-file/</guid>
      
        <description>This article shows how import, require and dynamic import() differ, why a module body runs only once, and why most &#39;is not defined&#39; errors are really a script order problem.</description>
      
    </item>
    
    <item>
      <title>How to remove a specific item from an array in JavaScript</title>
      <link>https://en.netcup.nllk.net/blog/post/0072-javascript-remove-array-item/</link>
      <pubDate>Mon, 31 Aug 2026 00:00:00 +0000</pubDate>
      
      <guid>https://en.netcup.nllk.net/blog/post/0072-javascript-remove-array-item/</guid>
      
        <description>This article shows the difference between filter and splice when removing an array item, why the missing -1 check deletes the wrong element, and why delete leaves a hole.</description>
      
    </item>
    
    <item>
      <title>How to round to at most 2 decimal places in JavaScript</title>
      <link>https://en.netcup.nllk.net/blog/post/0076-javascript-round-2-decimals/</link>
      <pubDate>Mon, 31 Aug 2026 00:00:00 +0000</pubDate>
      
      <guid>https://en.netcup.nllk.net/blog/post/0076-javascript-round-2-decimals/</guid>
      
        <description>This article compares toFixed and Math.round(x*100)/100 over 100,000 values, shows why 1.005 rounds down, and why toFixed and Intl.NumberFormat disagree on the same number.</description>
      
    </item>
    
    <item>
      <title>How to sleep in JavaScript</title>
      <link>https://en.netcup.nllk.net/blog/post/0078-javascript-sleep/</link>
      <pubDate>Mon, 31 Aug 2026 00:00:00 +0000</pubDate>
      
      <guid>https://en.netcup.nllk.net/blog/post/0078-javascript-sleep/</guid>
      
        <description>This article shows the promise-based sleep, measures what a busy-wait costs a pending timer, and why forEach with an async callback does not wait at all.</description>
      
    </item>
    
    <item>
      <title>How to validate an email address in JavaScript</title>
      <link>https://en.netcup.nllk.net/blog/post/0074-javascript-validate-email/</link>
      <pubDate>Mon, 31 Aug 2026 00:00:00 +0000</pubDate>
      
      <guid>https://en.netcup.nllk.net/blog/post/0074-javascript-validate-email/</guid>
      
        <description>This article compares a popular email regex with a loose one and with the browser&#39;s own check on the same ten inputs, and shows they disagree on half of them.</description>
      
    </item>
    
    <item>
      <title>var functionName = function() {} vs function functionName() {}</title>
      <link>https://en.netcup.nllk.net/blog/post/0080-javascript-function-declaration-vs-expression/</link>
      <pubDate>Mon, 31 Aug 2026 00:00:00 +0000</pubDate>
      
      <guid>https://en.netcup.nllk.net/blog/post/0080-javascript-function-declaration-vs-expression/</guid>
      
        <description>This article shows what hoisting does to a function declaration and a function expression, why var and const give different errors, and why naming a function expression for the stack trace is mostly obsolete.</description>
      
    </item>
    
  </channel>
</rss>
