Skip to content

Instantly share code, notes, and snippets.

View nalekberov's full-sized avatar
:bowtie:
On vacation

Nurlan nalekberov

:bowtie:
On vacation
  • Baku, Azerbaijan
View GitHub Profile
@nalekberov
nalekberov / parabank_deposit_calculator.js
Created January 22, 2024 16:36
Parabank's deposit calculator
/*
* Parabank Financial Calculator
* Date : 16.12.10
*/
function checkIsNumber() {
var re = /^\d+$/;
var amount = document.getElementById("amount").value;
if (re.test(amount) == false && amount) {
document.getElementById("amount").value = parseInt(amount);
}

FWIW: I'm not the author of the content presented here (which is an outline from Edmond Lau's book). I've just copy-pasted it from somewhere over the Internet, but I cannot remember what exactly the original source is. I was also not able to find the author's name, so I cannot give him/her the proper credits.


Effective Engineer - Notes

What's an Effective Engineer?