Blog

Latest Articles - Page 66

Browse the latest tutorials, guides, and practical examples across Linux, DevOps, security, databases, and programming on GoLinuxCloud.

Explore the latest tutorials and guides across Linux, DevOps, programming, and more.

You can also browse content by category below:

  • Linux: Commands, administration, troubleshooting, and system operations
  • DevOps: CI/CD, Kubernetes, containers, and automation
  • Cloud: AWS, Azure, OpenStack, and hybrid cloud administration
  • Programming: Coding tutorials, scripting, and development concepts
  • Security: Ethical hacking, system security, and best practices
  • Databases: MySQL, MariaDB, PostgreSQL, and database management
  • Networking: Network setup, troubleshooting, and protocols
  • Storage: Disk management, file systems, and storage solutions
  • Tools: Useful tools and utilities for productivity

3098 articles

Blog illustration with latest articles, tutorials, guides, and how-to content across Linux and DevOps topics
programming

JavaScript Thenable Objects and Promise.resolve()

Learn JavaScript thenables, Promise.resolve adoption, thenable vs promise differences, and how thenable objects work with await.

Olorunfemi Akinlua3 min read
programming

Math.abs() in JavaScript with Examples

Learn how Math.abs() works in JavaScript with absolute value examples, type coercion behavior, and difference calculations.

Olorunfemi Akinlua2 min read
programming

JavaScript toString() Method with Examples

Learn how JavaScript toString() works with numbers, arrays, booleans, and how it differs from JSON.stringify().

Olorunfemi Akinlua2 min read
programming

JavaScript for Loop with Index Examples

Learn how to get the index in JavaScript for loops with for...of, entries(), for...in, and practical index output examples.

Olorunfemi Akinlua2 min read
programming

JavaScript chain functions: nested calls, method chaining, map filter reduce

How to chain functions in JavaScript: javascript chain functions, js chain functions, function chaining in javascript, nested calls f(g(h(x))), fluent return this APIs, array pipelines filter map reduce, and pipe vs …

Olorunfemi Akinlua5 min read
programming

JavaScript arrow function: fat arrow syntax, this, return object, tutorial

How arrow functions work in JavaScript: js arrow function, arrow function javascript, javascript fat arrow => syntax, concise vs block body, js arrow function return object with parentheses, lexical this vs methods, no …

Olorunfemi Akinlua5 min read
programming

JavaScript array unique: Set, filter, reduce, Map, and NaN pitfalls

How to dedupe arrays in JavaScript: javascript array unique, js array unique, javascript unique array, distinct array javascript with Set spread, Array.from, filter plus indexOf, reduce plus includes, for loops, Map by …

Olorunfemi Akinlua5 min read
programming

JavaScript object literals: syntax, shorthand, spread, and JSON

Create objects with property pairs, shorthand keys, computed keys, methods, spread, and JSON.parse — all from object literal syntax.

Olorunfemi Akinlua4 min read
programming

JavaScript array slice: slicing, negative indexes, slice vs splice, TypedArray

How Array.prototype.slice works in JavaScript: javascript array slice, js array slice, javascript array slicing with slice(start, end), exclusive end, negative indices, shallow copy, slice vs splice, TypedArray subarray …

Olorunfemi Akinlua5 min read
programming

JavaScript array pop: remove last element, return value, empty array, slice

How pop works in JavaScript: javascript pop, javascript array pop, js array pop with Array.prototype.pop, return value, empty array undefined, pop in javascript, generic array-like objects, and immutable alternatives …

Olorunfemi Akinlua5 min read
programming

Flatten array JavaScript: flat, flat(Infinity), flatMap, concat, reduce

How to flatten an array in JavaScript: flatten array javascript, js flatten array, javascript flatten array with flat(), depth and Infinity, flatMap vs map+flat(1), recursive concat/reduce for legacy engines, non-array …

Olorunfemi Akinlua5 min read
programming

JavaScript equality: equals, == vs ===, and the equal sign

JavaScript equality: loose == vs strict ===, type coercion, null and undefined, NaN and Object.is. Short notes after snippets describe expected console output (Node.js v20.18.2).

Steve Alila6 min read
programming

JavaScript array fill: Array.prototype.fill, start/end, typed arrays, Array.from

How Array.prototype.fill works in JavaScript: javascript array fill, fill array js, array.fill with value and optional start/end, exclusive end, negative indices, object reference gotcha, new Array(n).fill, typed arrays, …

Olorunfemi Akinlua5 min read
programming

JavaScript DOM selectors: querySelector, getElementById, and more

JavaScript DOM selectors: querySelector, querySelectorAll, getElementById, getElementsByClassName, getElementsByTagName, live HTMLCollection vs static NodeList. Snippets use `{run=false}`—inject the sample HTML in a …

Olorunfemi Akinlua6 min read
programming

JavaScript dictionary: objects, Map, and dict patterns

JavaScript dictionary guide: plain objects vs Map for key-value data (js dict / dict in javascript). CRUD, iteration, Object.create(null), non-string keys, and Object.fromEntries. Short notes after snippets describe …

Olorunfemi Akinlua5 min read
programming

JavaScript destructuring: arrays, objects, defaults, and function params

javascript destructuring and destructuring assignment: array destructuring javascript (order, skip, rest, defaults), object destructuring javascript (rename, nested, rest), function parameters with = {}, for-of patterns, …

Olorunfemi Akinlua8 min read
programming

JavaScript deep copy: structuredClone, JSON, and when each one breaks

javascript deep copy, deep copy javascript, js deep copy, and deep copy object javascript: shallow spread and Object.assign, structuredClone for nested cloneable data, JSON.parse(JSON.stringify) limits, lodash cloneDeep, …

Olorunfemi Akinlua8 min read
programming

JavaScript CSV to array: read & parse CSV into arrays (browser & Node.js)

javascript csv to array and read csv file into array: 1D lists, 2D row arrays, and header-keyed objects; javascript parse csv with split for simple data, BOM and quotes, fetch and FileReader, Node readline and …

Olorunfemi Akinlua11 min read
programming

JavaScript arguments object vs parameters: strict mode, rest, and args

How the javascript arguments object works: args javascript, javascript arguments object vs parameters, sloppy-mode aliasing, strict mode, default parameters, variadic sum, Array.from(arguments), rest parameters vs spread …

Olorunfemi Akinlua5 min read
programming

JavaScript Nested Functions: Inner Function and Closure Examples

JavaScript nested functions: inner functions, scope, closures, private helpers, and when nesting stays readable.

Olorunfemi Akinlua3 min read
programming

Append to a JavaScript array: push, spread, concat (and prepend with unshift)

How to append to arrays in JavaScript: javascript append to array, js append to array with push and return value, push(...arr), spread literals, concat for new arrays, nested push gotcha, unshift prepend, and push.apply …

Olorunfemi Akinlua5 min read
programming

JavaScript event bubbling: DOM propagation and delegation

Event bubbling: inner-to-outer delivery, delegation on a parent, stopPropagation vs preventDefault, and capture phase contrast. Snippets use `{run=false}`—run in DevTools or with jsdom/happy-dom where markup exists.

Olorunfemi Akinlua4 min read
programming

JavaScript addEventListener (DOM events, options, and examples)

JavaScript addEventListener on document, window, and elements: click, capture vs bubble, removeEventListener, once, passive, AbortSignal, delegation, and Node EventEmitter. DOM snippets use `{run=false}` (install jsdom …

Olorunfemi Akinlua7 min read
programming

JavaScript forEach vs for...in (arrays and objects)

Compare Array.prototype.forEach with for...in on objects and arrays, when for...of wins, and how to avoid enumerable-key bugs. Runnable Node snippets with short output notes.

Olorunfemi Akinlua5 min read
programming

Date/time out of range in JavaScript (and the PostgreSQL pq error)

Compare Date values in JavaScript to detect out-of-range times, and fix PostgreSQL pq: date/time field out of range from bad string formats.

Olorunfemi Akinlua3 min read
programming

JavaScript add to array: push, unshift, splice, concat, spread, length

How to add to arrays in JavaScript: javascript add to array, js add to array with push, unshift, splice, toSpliced, concat, spread, length holes, javascript add array to array, mutating vs new array, and links to append …

Olorunfemi Akinlua5 min read
programming

Add days to a date in JavaScript (UTC, local, DST caveats)

How to javascript add days to date and js date add days: getUTCDate/setUTCDate for UTC calendar days, getDate/setDate for local wall calendar, immutable copy pattern, getTime + 86400000 ms vs DST, negative days, and Intl …

Olorunfemi Akinlua4 min read
programming

insertBefore in JavaScript (DOM, null, nextSibling)

insertBefore javascript and js insert before: parent.insertBefore(newNode, referenceNode), referenceNode null for end append, firstChild text nodes, insert after via nextSibling, TypeError if second arg omitted. Examples …

Olorunfemi Akinlua5 min read
programming

Call a function every second in JavaScript (setInterval, cleanup)

JavaScript call function every second and every 5 seconds with setInterval and clearInterval, recursive setTimeout when work overlaps, setTimeout delays, async delay helper, timer cleanup, and Node/browser throttling …

Olorunfemi Akinlua5 min read
programming

JavaScript array range (Array.from, start/stop/step, loop)

Numeric ranges with Array.from, start/stop/step helpers, loops, and keys(). Snippets include short expected-output notes from Node runs.

Olorunfemi Akinlua6 min read