JavaScript · 443 B

Minified JavaScript (with source map)

Our JavaScript sample minified by esbuild, ending in a //# sourceMappingURL comment that points at sample.min.js.map.

CC0 · free for any use · Verified by an independent tool · Report a problem

sample.min.js — first linesJavaScript
class a{constructor(t,o,s){this.id=t,this.name=o,this.balance=s}get isVip(){return this.balance>=1e4}}const c=e=>e.reduce((t,o)=>t+o.balance,0),n=[new a(1,"Ada",12500),new a(2,"Grace",830.5),new a(3,"Linus",1e4)];for(const e of n)console.log(`${e.name.padEnd(6)} ${e.balance.toFixed(2).padStart(10)} ${e.isVip?"VIP":""}`);console.log(`Total: ${c(n).toFixed(2)}`);export{a as Customer,c as totalBalance};
//# sourceMappingURL=sample.min.js.map

File details

Size
443 B (443 bytes)
MIME type
text/javascript
SHA-256
1545b15a82a3148b682b7d9f0bc04bda8f3a6eef0f24799197c69bb714bd3d1b
MD5
3b708f9e5225cd18857f334b28585ed2

Download from the command line

curl -L -o sample.min.js https://files.samplefiles.com/code/js/sample.min.js

Or check the download in your browser with the checksum calculator.

Similar JavaScript files

FileSizeDetailsDownload
Sample JavaScript filesample.js642 BDownload
Large JavaScript file (about 10,000 lines)sample-10000-lines.js205 KB9,998 linesDownload