js1024

js1024

Annual JavaScript Golfing Competition

CLOSED. Starts on 1 July

Calculator
by Gerardo-Juarez
1023/1024 bytes - HTML project

Run Demo Minified code Readable code

bWVtb3J5IGZ1bmN0aW9ucw0KTUMgY2xlYXIgbWVtb3J5DQpNKyBtb3JlIG1lbW9yeQ0KTS0gbWVtb3J5IGxlc3MNCk1SIHJlY2FsbCBtZW1vcnkNCkMgY2xlYW4gc2NyZWVuLCBkZWxldGUgcGVuZGluZyBvcGVyYXRpb25zLCBhbmQgd2FpdGluZyBudW1iZXJzLg0KKy8tIFByZXNzIHRoZSBrZXkgdG8gY2hhbmdlIHRoZSBzaWduIG9mIHRoZSBudW1iZXIgb24gdGhlIHNjcmVlbg0KDQpDYWxjdWxhdG9yIHBlcmZvcm1zIG9wZXJhdGlvbnMgd2l0aCB0d28gbnVtYmVycy4NCjEuLSBGaXJzdCBudW1iZXI6IHdlIHdyaXRlIHRoZSBmaXJzdCBudW1iZXIgb24gdGhlIHNjcmVlbi4NCjIuLSBvcGVyYXRvcjogd2UgcHJlc3MgdGhlIG9wZXJhdGlvbiBrZXkgRGl2aXNpb24gLywgTXVsdGlwbGljYXRpb24gKiwgQWRkaXRpb24gKywgU3VidHJhY3Rpb24tLg0KMy4tIFNlY29uZCBudW1iZXI6IHdlIHdyaXRlIHRoZSBzZWNvbmQgbnVtYmVyOiB3aGVuIHdlIHN0YXJ0IHdyaXRpbmcgdGhlIHNjcmVlbiByZXN0YXJ0cy4NCjQuLSBTYW1lOiBXZSBwcmVzcyB0aGUgPSBrZXkgYW5kIGl0IGdpdmVzIHVzIHRoZSByZXN1bHQgb2YgdGhlIG9wZXJhdGlvbi4NCg0KSWYgd2UgcHJlc3MgdGhlIGJ1dHRvbnMgaW4gdGhpcyBvcmRlciBleGFtcGxlICI1ICsgMyAqIDIgPSIgd2hlbiBwcmVzc2luZyB0aGUgYnV0dG9uICIqIiB0aGUgcHJldmlvdXMgb3BlcmF0aW9uIGlzIHNvbHZlZCwNCiBhbmQgdGhlIHJlc3VsdCBiZWNvbWVzIHRoZSBmaXJzdCBudW1iZXIgb2YgdGhlIGN1cnJlbnQgb3BlcmF0aW9uLg==

Ratings

Anonymous participant 62/100: small and cute!! >.<
Anonymous participant 95/100: no comment
Anonymous participant 55/100: nothing creative, nothing thematic, but works
Anonymous participant 65/100: Impressive to get a fully working calculator within 1024B, but not particularly creative or fitting with the theme
Anonymous participant 55/100: no comment
Anonymous participant 50/100: Great
Anonymous participant 70/100: Love the code. Eval takes care of precedence and such.
Anonymous participant 40/100: A simple calculator with memory. Uses up almost all available bytes and doesn't seem to be very optimized.
Anonymous participant 25/100: no comment
Anonymous participant 66/100: Very well executed with edge cases taken care of, but a bit too serious ... not exactly what one would expect for a fun demo contest.
Anonymous participant 70/100: Neat! Note that calculators usually round display values to 10 s.f in order to hide compounding representation errors from users, i.e so that 0.1 + 0.2 = 0.3
Anonymous participant 85/100: Pretty neat. The JS part can be minified more using a crusher to give more space for styling.

Public comments

No public comments yet.

Leave a comment