Blog

Latest Articles

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

2329 articles

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

Factorial Function in JavaScript Using Recursion

Learn how to write a factorial function in JavaScript using recursion, base cases, input validation, and an iterative alternative.

Olorunfemi Akinlua3 min read
programming

JavaScript Recursive Map Object: Transform Nested Values

Learn how to recursively map over a JavaScript object, transform nested values, preserve arrays, and create a new object without mutating input data.

Olorunfemi Akinlua3 min read
programming

JavaScript Recursive Search in Array of Objects

Learn how to recursively search an array of objects in JavaScript, find nested objects by ID, return all matches, and search child arrays safely.

Olorunfemi Akinlua3 min read
programming

JavaScript Recursive Generator with yield* Examples

Learn JavaScript recursive generators with function*, yield, yield*, tree traversal, converting generators to arrays, and practical examples.

Olorunfemi Akinlua3 min read
programming

JavaScript Pattern Matching with RegExp Examples

Learn JavaScript pattern matching with regular expressions using search(), match(), matchAll(), replace(), split(), and the RegExp constructor.

Olorunfemi Akinlua4 min read
programming

JavaScript Optional Parameters and Default Values

JavaScript optional parameters: default parameters, undefined vs null, options objects, destructuring defaults, and arguments.length patterns.

Olorunfemi Akinlua2 min read
programming

JavaScript Promise.reject(): Create and Handle Rejected Promises

Learn Promise.reject() in JavaScript with catch(), async/await, error handling, Promise.resolve comparison, and tested rejection examples.

Olorunfemi Akinlua3 min read
programming

JavaScript Promise.resolve(): Create Resolved Promises

Learn Promise.resolve() in JavaScript with resolved values, existing promises, thenables, async functions, and Promise.reject comparison.

Olorunfemi Akinlua3 min read
programming

JavaScript Promise.race (first settled promise)

JavaScript Promise.race explained: first settled promise wins, timeout patterns, empty iterable, non-Promise inputs, and how it differs from Promise.all and Promise.any. Every sample output was run on Node.js (V8).

Olorunfemi Akinlua4 min read
programming

JavaScript Set add(): Add Values to a Set

Learn JavaScript Set add() with examples showing unique values, chaining, object references, has(), size, and converting a Set to an array.

Olorunfemi Akinlua2 min read
programming

JavaScript NodeList: querySelectorAll, forEach, and Array.from

Learn JavaScript NodeList with practical examples. Understand NodeList vs Array, NodeListOf, querySelectorAll, forEach, Array.from, static NodeList behavior, and NodeList vs HTMLCollection.

Olorunfemi Akinlua2 min read
programming

JavaScript querySelector(): Select DOM Elements with CSS Selectors

Learn JavaScript querySelector() with CSS selectors, document.querySelector(), querySelectorAll(), null checks, selector errors, and practical DOM examples.

Olorunfemi Akinlua3 min read
programming

JavaScript parseFloat(): Convert Strings to Decimal Numbers

Learn how JavaScript parseFloat() converts strings to decimal numbers, how it handles trailing characters, NaN, scientific notation, and how it differs from Number().

Olorunfemi Akinlua3 min read
programming

JavaScript startsWith(): Check if a String Starts With Text

Learn JavaScript startsWith() with examples for checking string prefixes, using the position argument, case sensitivity, and alternatives.

Olorunfemi Akinlua2 min read
programming

JavaScript String Contains: includes(), indexOf(), and Regex

Learn how to check if a JavaScript string contains a substring using includes(), indexOf(), regular expressions, position checks, and case-insensitive search.

Steve Alila2 min read
programming

JavaScript Print Object: console.log and JSON.stringify Examples

Learn how to print objects in JavaScript using console.log(), JSON.stringify(), console.table(), Object.keys(), Object.values(), and object entries.

Olorunfemi Akinlua3 min read
programming

JavaScript Redirect to URL with location.href, assign, and replace

Learn JavaScript redirect methods using window.location.href, location.assign(), location.replace(), relative URLs, and redirect behavior in browser history.

Steve Alila3 min read
programming

JavaScript slice(): Array and String Examples

Learn JavaScript slice() for arrays and strings, including start/end indexes, negative indexes, shallow copy behavior, and slice vs splice.

Olorunfemi Akinlua2 min read
programming

JavaScript Send Tab Key and Detect Tab Key Press

Learn how to detect the Tab key in JavaScript, understand keyCode 9, handle KeyboardEvent.key, and why browsers restrict simulated Tab navigation.

Olorunfemi Akinlua2 min read
programming

JavaScript Sort by Date: Ascending and Descending Examples

Learn how to sort dates in JavaScript using Array.sort(), Date objects, timestamps, ascending and descending order, and safe ISO date strings.

Olorunfemi Akinlua2 min read
programming

JavaScript replaceWith() Method Explained

Learn JavaScript replaceWith() with examples for replacing an element with a node, text, or multiple nodes, plus replaceWith vs replaceChild.

Olorunfemi Akinlua2 min read
programming

JavaScript Set Remove Element with delete()

Learn how to remove an element from a Set in JavaScript using Set.delete(), check the boolean return value, clear all values, and remove object references.

Olorunfemi Akinlua3 min read
programming

JavaScript setTimeout(): Delay Code Execution

Learn JavaScript setTimeout() with delay examples, clearTimeout(), callback arguments, async behavior, and common mistakes in browsers and Node.js.

Deepak Prasad4 min read
programming

Golang reflect and golang reflection: Type, Value, Kind, Set, MakeFunc, StructOf

Golang reflection with reflect.TypeOf and reflect.ValueOf, Kind vs Type, struct fields and tags, settable values and Set, reflect.New, MakeSlice MakeMap MakeChan, MakeFunc wrappers, StructOf limits, Value.Call, …

Tuan Nguyen7 min read
programming

Go “Cannot Find Package” / Not in GOROOT (Even If GOPATH Is Set)

Why Go says cannot find package or package is not in GOROOT (or GOROOT/GOPATH), how modules fix it, and fixes for go build, go install, and the -o with multiple packages error.

Tuan Nguyen5 min read
programming

JavaScript timestamp: get, generate, and convert epoch time

javascript timestamp, js timestamp, javascript get timestamp, timestamp javascript, javascript generate timestamp: Date.now, getTime, Unix seconds, ISO strings, performance.now, with Node-verified output.

Olorunfemi Akinlua4 min read
programming

JavaScript loop through object: forEach, keys, entries (javascript foreach object)

javascript foreach object, javascript loop through object, loop through object javascript, js foreach object, js loop through object, js object foreach, foreach object js, javascript iterate object, object foreach …

Olorunfemi Akinlua4 min read
programming

JavaScript get current date and time: new Date, UTC fields, and strings

javascript get current date, js get date, get current date javascript, javascript current date, javascript get date, js get current date, get date javascript, current date javascript, javascript datetime now: new Date(), …

Olorunfemi Akinlua5 min read
programming

JavaScript Keyboard Events: keydown, keyup, and keypress

JavaScript keyboard events: keydown, keyup, deprecated keypress, KeyboardEvent.key and code, repeat, preventDefault. happy-dom–style notes describe simulated output; DOM excerpts use `{run=false}` where appropriate.

Olorunfemi Akinlua6 min read
programming

Global variable in JavaScript: globalThis, var, strict mode, and multiple files

javascript global variable across files, javascript global variable, js global variable, global variable javascript, global variable in javascript, global var in javascript, var global js, var global javascript, global …

Olorunfemi Akinlua5 min read