#and then i tried to reassign my let variables but codepen kept throwing errors and i genuinely could not be bothered to figure out why
Explore tagged Tumblr posts
Text
Obsessed with the way my most recent homework task was like "create this program in javascript and then document the process on your blog" because like. You know you're not getting an honest depiction of my process, right?
#like if i'd been totally honest about the process of creating that program i would've been like 'okay so i opened my laptop at 10am'#'then i spent almost a solid hour on tumblr.com. at ten to eleven i realised i hadn't eaten anything whatsoever and also that mabel needed#her lunch. so i fed mabel and then myself and got back to it'#'while eating a cheese sandwich i created all my necessary variables and then realised i have no idea how to calculate a percentage#like i know that 15% of 30 is 4.5 but i can't use MY process of getting there for my program because i just divide 30 by 10#and then i divide that in half and then i add those numbers together and then i get 4.5. so i googled how to make a percentage calculator#in javascript and i confidently copy-pasted the first option and it was like 'your total is -50' and i was like 'uhhhh how'#and that was when i realised the difference between calculating a percentage and calculating percent of something#eventually i worked out how to do it but it took me like a solid hour. then i couldn't get .toFixed() to work for thee longest time#i eventually just read an article properly and found the syntax for it and then it worked. then i couldn't work out how to put a £ in there#but i eventually did it. then i added the tip amount into the output as well solely because i saw i'd get extra points for that#and then times new roman started to annoy me so i did some basic styling which required me to google 'how to put your text in the centre#of the page in css' for approximately like the 15th time#and then i tried to reassign my let variables but codepen kept throwing errors and i genuinely could not be bothered to figure out why#because i wasn't sure if it was necessary for the homework or not but i couldn't see it in the instructions so i figured probably not#so at that point i gave up on that line of enquiry; typed up a blog post; screenshotted everything & just submitted it'#like no one needs to know precisely how dumb i am. it's just not required#personal
1 note
·
View note