Zum Inhalt springen

Developer Snippets

My little Snippet library.

Neueste Beiträge

  • JS: Mask all except the last four digits
  • Docker, check all log files
  • Delete *.log files older then 30 days
  • Find Files by Age and copy them to another directory
  • Search with grep and zip file results

Kategorien

  • .git
  • #!/bin/bash
  • Allgemein
  • Docker
  • HTML5
  • Javascript
  • Linux
  • Odoo
  • PHP
  • Terminal / Shell / Cli
  • Windows

Kategorie: Javascript

JS: Mask all except the last four digits

This is from an exercise for in-between that I fished out of the net. The aim is to mask all numbers with an X or an asterisk, similar to credit card entries.

The personal solution is waiting in the detailed view of the article.

Example Number: 123456789

Result: 12345****


JS: Mask all except the last four digits weiterlesen
Veröffentlicht am 1. August 20221. August 2022Kategorien JavascriptSchlagwörter excercise, js
Stolz präsentiert von WordPress