[{"data":1,"prerenderedAt":75},["ShallowReactive",2],{"project-\u002Fportfolio\u002Fblackberry\u002Flove-is":3},{"id":4,"title":5,"archived":6,"body":7,"carousel":55,"category":56,"description":57,"displayOrder":58,"extension":59,"featured":6,"features":60,"fullImage":55,"image":66,"imageAlt":67,"meta":68,"mockup":55,"navigation":69,"path":70,"repo":55,"seo":71,"stem":72,"subhead":73,"url":55,"__hash__":74},"projects\u002Fportfolio\u002Fblackberry\u002Flove-is.md","Love Is",false,{"type":8,"value":9,"toc":52},"minimark",[10,14,17,20,31,34,40,43,49],[11,12,13],"p",{},"As I was learning JavaScript I was looking for simple problems to solve to get some\npractice writing simple algorithms.",[11,15,16],{},"A long time ago when I was at school, kids would use a simple method to see\nwhether their crush on someone was reciprocal. The test would return a percentage\nof how much two people loved each other.",[11,18,19],{},"The method is simple. Take the\nnames of the two people and count the instances of each letter in the word \"LOVES\".\nWhen the count is complete you would be left with 5 numbers.",[21,22,27],"pre",{"className":23,"code":25,"language":26},[24],"language-text","Tom \"LOVES\" Nicole\n1, 2, 0, 1, 0\n","text",[28,29,25],"code",{"__ignoreMap":30},"",[11,32,33],{},"The next step in the process is to add each of the adjacent numbers together\nwhich would then result in 4 numbers.",[21,35,38],{"className":36,"code":37,"language":26},[24],"'1 + 2', '2 + 0', '0 + 1', '1 + 0'\n3, 2, 1, 1\n",[28,39,37],{"__ignoreMap":30},[11,41,42],{},"This step would then be repeated until there were only two numbers remaining. At this\npoint you would just join the two numbers together and that was your percentage.",[21,44,47],{"className":45,"code":46,"language":26},[24],"5, 3, 2\n8, 5\n85%\n",[28,48,46],{"__ignoreMap":30},[11,50,51],{},"This proved to be a good test and when it was complete I created a BlackBerry\nWebWorks Application using the algorithm.",{"title":30,"searchDepth":53,"depth":53,"links":54},2,[],null,"blackberry","Love Calculator - A simple and fun BlackBerry 10 WebWorks App written in JavaScript",99,"md",[61,62,63,64,65],"html5","css3","javascript","bbui.js","blackberry webworks","\u002Fimages\u002Fprojects\u002Fblackberry\u002Flove-is.jpg","The Love Calculator - Blackberry Application",{},true,"\u002Fportfolio\u002Fblackberry\u002Flove-is",{"title":5,"description":57},"portfolio\u002Fblackberry\u002Flove-is","The Love Calculator","GUcUXklP8-Rz5mEo35PyphYV8BkuREwgP2ch-AD2exE",1794401061616]