[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"doc-seo-784087-105":3,"detail-sidebar-cat-0-en-105":79,"doc-detail-784087-en":129,"doc-similar-784087":170},{"code":4,"msg":5,"data":6},0,"ok",{"site_id":7,"language":8,"slug":9,"title":10,"keywords":11,"description":12,"schema_data":13,"social_meta":72,"head_meta":74,"extra_data":76,"updated_unix":78},105,"en","50-coding-challenges","50-Coding-Challenges","","JavaScript practice booklet offers beginner-friendly coding exercises intended for steady practice, with a suggested pace of at least one challenge per day and completion in 50 days or less. The tasks rely on basic language constructs and cover loops, arithmetic, functions, arrays, strings, prime numbers, Fibonacci sequences, sorting, geometry, nested arrays, randomization, and high-precision calculations. It encourages experimentation rather than a single perfect solution, supports classroom exercises, and recommends an online coding playground. Solutions are included, with source code available through CodeGuppy. Despite the title, the contents list challenges numbered 1 through 53.",{"@graph":14,"@context":71},[15,34,54],{"@type":16,"itemListElement":17},"BreadcrumbList",[18,23,27,31],{"item":19,"name":20,"@type":21,"position":22},"https://docshare.wps.com","Home","ListItem",1,{"item":24,"name":25,"@type":21,"position":26},"https://docshare.wps.com/document/","Document",2,{"item":28,"name":29,"@type":21,"position":30},"https://docshare.wps.com/document/technology/","Technology",3,{"item":32,"name":10,"@type":21,"position":33},"https://docshare.wps.com/document/50-coding-challenges/784087/",4,{"url":32,"name":10,"@type":35,"image":36,"author":41,"headline":10,"publisher":44,"fileFormat":47,"inLanguage":8,"description":12,"dateModified":48,"datePublished":48,"encodingFormat":47,"isAccessibleForFree":49,"interactionStatistic":50},"DigitalDocument",{"url":37,"@type":38,"width":39,"height":40},"https://docshare.wps.com/thumbnails/50-coding-challenges/784087.png","ImageObject",300,407,{"name":42,"@type":43},"Emma Williams","Person",{"url":19,"name":45,"@type":46},"DocShare","Organization","application/pdf","2026-12-04",true,{"@type":51,"interactionType":52,"userInteractionCount":26},"InteractionCounter",{"@type":53},"ViewAction",{"@type":55,"mainEntity":56},"FAQPage",[57,63,67],{"name":58,"@type":59,"acceptedAnswer":60},"Who are the coding challenges intended for?","Question",{"text":61,"@type":62},"They are designed for beginners practicing JavaScript with basic language constructs, though advanced users may also enjoy them.","Answer",{"name":64,"@type":59,"acceptedAnswer":65},"What topics do the exercises cover?",{"text":66,"@type":62},"They cover arithmetic, functions, arrays, strings, prime numbers, Fibonacci sequences, sorting, geometry, and other programming tasks.",{"name":68,"@type":59,"acceptedAnswer":69},"Are solutions or source code provided?",{"text":70,"@type":62},"The booklet includes solutions, and the source code is available online through CodeGuppy.","https://schema.org",{"og:url":32,"og:type":73,"og:title":10,"og:site_name":45,"og:description":12},"article",{"robots":75,"canonical":32},"index,follow",{"doc_id":77,"site_id":7},784087,1796385971,{"code":4,"msg":80,"data":81},"success",[82,86,90,94,99,103,108,113,118,121,125],{"id":22,"doc_module":4,"doc_module_name":25,"category_name":83,"show_sort_weight":84,"slug":85},"Story & Novel",90,"story-novel",{"id":26,"doc_module":4,"doc_module_name":25,"category_name":87,"show_sort_weight":88,"slug":89},"Literature",80,"literature",{"id":33,"doc_module":4,"doc_module_name":25,"category_name":91,"show_sort_weight":92,"slug":93},"Exam",70,"exam",{"id":95,"doc_module":4,"doc_module_name":25,"category_name":96,"show_sort_weight":97,"slug":98},5,"Comic",60,"comic",{"id":100,"doc_module":4,"doc_module_name":25,"category_name":29,"show_sort_weight":101,"slug":102},6,50,"technology",{"id":104,"doc_module":4,"doc_module_name":25,"category_name":105,"show_sort_weight":106,"slug":107},7,"Healthcare",40,"healthcare",{"id":109,"doc_module":4,"doc_module_name":25,"category_name":110,"show_sort_weight":111,"slug":112},8,"Research & Report",30,"research-report",{"id":114,"doc_module":4,"doc_module_name":25,"category_name":115,"show_sort_weight":116,"slug":117},9,"Religion & Spirituality",20,"religion-spirituality",{"id":116,"doc_module":4,"doc_module_name":25,"category_name":119,"show_sort_weight":116,"slug":120},"World Cup","world-cup",{"id":122,"doc_module":4,"doc_module_name":25,"category_name":123,"show_sort_weight":122,"slug":124},10,"Lifestyle","lifestyle",{"id":126,"doc_module":4,"doc_module_name":25,"category_name":127,"show_sort_weight":95,"slug":128},19,"General","general",{"code":4,"msg":80,"data":130},{"doc_id":77,"user_id":131,"nickname":42,"user_avatar":132,"doc_module":4,"category_id":100,"category_name":29,"doc_title":10,"doc_description":12,"doc_content":133,"file_id":134,"file_url":135,"file_type":136,"file_size":137,"view_count":26,"is_deleted":4,"is_public":22,"is_downloadable":22,"audit_status":22,"page_count":138,"language":139,"language_code":8,"site_id":7,"html_lang":8,"table_of_contents":140,"faqs":141,"seo_title":142,"seo_description":12,"update_tm":78,"read_time":143,"preview_page_count":104,"preview_urls":144},4398072658750,"https://ap-avatar.wpscdn.com/davatar_29158cc5080c5b710cf443261637dec0","5 0 C O D I N GC HA L L E N G E S  \n… I N 5 0 DAYS O RL E S S  \n   [codeguppy.com](codeguppy.com)  \nAbout these coding challenges  \n• These coding challenges are intended for code newbies that want to practice JavaScript  \n• The challenges are designed to be solved only with basic JavaScript language constructs  \n• Although intended for beginners, advanced users can have fun too  \n• Try to solve at least 1 coding challenge per day  \n• Any solution that you find is a good solution…we are not looking for the perfect solution  \n• For convenience, when you work on these challenges, you can use an online coding playground, such as the one from [https://codeguppy.com](https://codeguppy.com)  \n• Feel free to share this booklet with your friends and invite them to complete the coding challenges  \n• This booklet contains also all the solutions to these challenges  \n• These challenges are great as coding exercises for CS classrooms!  \n• Have fun!  \nThis booklet is completely free. Feel free to share it with your friends, post it on your website or share it on your social network.  \n50 coding challenges – Part I  \n1. Print numbers from 1 to 10  \n2. Print the odd numbers less than 100  \n3. Print the multiplication table with 7  \n4. Print all the multiplication tables with numbers from 1 to 10  \n5. Calculate the sum of numbers from 1 to 10  \n6. Calculate 10!  \n7. Calculate the sum of even numbers greater than 10 and less than 30  \n8. Create a function that will convert from Celsius to Fahrenheit  \n9. Create a function that will convert from Fahrenheit to Celsius  \n10. Calculate the sum of numbers in an array of numbers  \n11. Calculate the average of the numbers in an array of numbers  \n12. Create a function that receives an array of numbers as argument and returns an array containing only the positive numbers  \n13. Find the maximum number in an array of numbers  \n14. Print the first 10 Fibonacci numbers without recursion  \n15. Create a function that will find the nth Fibonacci number using recursion  \n16. Create a function that will return a Boolean specifying if a number is prime  \n17. Calculate the sum of digits of a positive integer number  \n18. Print the first 100 prime numbers  \n19. Create a function that will return in an array the first “p” prime numbers greater than “n”  \n20. Rotate an array to the left 1 position  \n21. Rotate an array to the right 1 position  \n22. Reverse an array  \n23. Reverse a string  \n24. Create a function that will merge two arrays and return the result as a new array  \n25. Create a function that will receive two arrays of numbers as arguments and return an array composed of all the numbers that are either in the first array or second array but not in both  \n26. Create a function that will receive two arrays and will return an array with elements that are in the first array but not in the second  \n[codeguppy.com](codeguppy.com)  \n50 coding challenges – Part II  \n27. Create a function that will receive an array of numbers as argument and will return anew array with distinct elements  \n28. Calculate the sum of first 100 prime numbers and return them in an array  \n29. Print the distance between the first 100 prime numbers  \n30. Create a function that will add two positive numbers of indefinite size.The numbers are received as strings and the result should be also provided as string.  \n31. Create a function that will return the number of words in a text  \n32. Create a function that will capitalize the first letter of each word in a text  \n33. Calculate the sum of numbers received in a comma delimited string  \n34. Create a function that returns an array with words inside a text.  \n35. Create a function to convert a CSV text to a “bi-dimensional” array  \n36. Create a function that converts a string to an array of characters  \n37. Create a function that will convert a string in an array containing the ASCII codes of each character  \n38. Create a function that will convert an array containing ASCII codes in a string ","cbCaifZGXUtKfSjh","https://ap.wps.com/l/cbCaifZGXUtKfSjh","pdf",2850819,65,"English","# 50 Coding Challenges – Part I\n# 50 Coding Challenges – Part II","[{\"question\":\"Who are the coding challenges intended for?\",\"answer\":\"They are designed for beginners practicing JavaScript with basic language constructs, though advanced users may also enjoy them.\"},{\"question\":\"What topics do the exercises cover?\",\"answer\":\"They cover arithmetic, functions, arrays, strings, prime numbers, Fibonacci sequences, sorting, geometry, and other programming tasks.\"},{\"question\":\"Are solutions or source code provided?\",\"answer\":\"The booklet includes solutions, and the source code is available online through CodeGuppy.\"}]","50-Coding-Challenges | PDF",164,[145,149,152,156,159,163,167],{"page_no":22,"url":146,"width":147,"height":148},"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-12-04/43a35ef24d078a9fedc1299216fc259c.webp",983,552,{"page_no":26,"url":150,"width":151,"height":148},"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-12-04/bafda63f716845267349dbf62c8fb821.webp",982,{"page_no":30,"url":153,"width":154,"height":155},"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-12-04/59588ac5db0f4480c6d0ddee7777d1d4.webp",981,551,{"page_no":33,"url":157,"width":158,"height":155},"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-12-04/de15fea9bae7ff5f057e858ebf223702.webp",980,{"page_no":95,"url":160,"width":161,"height":162},"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-12-04/fcbebcda3d8b1fb6c197bea0505e9a59.webp",979,550,{"page_no":100,"url":164,"width":165,"height":166},"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-12-04/965ef7e588fa3d8e475571db112d9dcf.webp",978,549,{"page_no":104,"url":168,"width":169,"height":166},"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-12-04/4cb73e786c789c53fb9dd8ad1af9c342.webp",977,{"list":171,"token":11},[172,178,184,190,196,203,210,216,222,229],{"doc_id":173,"doc_title":174,"file_type":136,"home_preview_img_url":175,"slug":176,"view_count":26,"category_name":29,"create_tm":177},790648,"Algorithmic Thinking with Python - Semester 1","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110230058082686/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796585819&Signature=MgzwHhPp%2FWvWzTuMsVvTD1OGfyA%3D","algorithmic-thinking-with-python-semester-1",1796506623,{"doc_id":179,"doc_title":180,"file_type":136,"home_preview_img_url":181,"slug":182,"view_count":33,"category_name":29,"create_tm":183},688769,"Code for Teens - The Awesome Beginner's Guide to Programming","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110230000666024/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796585819&Signature=XyyzBoGQp96Lpf2jQO6UBmNHWcg%3D","code-for-teens-the-awesome-beginners-guide-to-programming",1794091476,{"doc_id":185,"doc_title":186,"file_type":136,"home_preview_img_url":187,"slug":188,"view_count":26,"category_name":29,"create_tm":189},790642,"1BPLC105B","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110230058082650/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796585819&Signature=aI7lnYnpj3SWavYsaM%2BgrbMvBG4%3D","1bplc105b",1796506601,{"doc_id":191,"doc_title":192,"file_type":136,"home_preview_img_url":193,"slug":194,"view_count":26,"category_name":29,"create_tm":195},790634,"R22 - Problem Solving Using Python Programming Lab","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110230058082585/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796585819&Signature=rfeptSz%2BpsbQYDS8LhXZD6OABKE%3D","r22-problem-solving-using-python-programming-lab",1796506574,{"doc_id":197,"doc_title":198,"file_type":136,"home_preview_img_url":199,"slug":200,"view_count":201,"category_name":29,"create_tm":202},19438,"JavaScript Essentials","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110229709214853/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796585819&Signature=g5KJOOkEGJNY2jLT4vQMRyJNwx8%3D","javascript-essentials",59,1777160182,{"doc_id":204,"doc_title":205,"file_type":136,"home_preview_img_url":206,"slug":207,"view_count":208,"category_name":29,"create_tm":209},423012,"Think Java - How to Think Like a Computer Scientist - Version 6.6.0","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110229922611452/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796585819&Signature=0ToI988pqbGvulx2FCbd4c1Bk4s%3D","think-java-how-to-think-like-a-computer-scientist-version-660",13,1790629747,{"doc_id":211,"doc_title":212,"file_type":136,"home_preview_img_url":213,"slug":214,"view_count":22,"category_name":29,"create_tm":215},786516,"Comprehensive Rust","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110230057400548/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796585819&Signature=I20xrSpfI2MzUsJybIhsUFqIaRI%3D","comprehensive-rust",1796427834,{"doc_id":217,"doc_title":218,"file_type":136,"home_preview_img_url":219,"slug":220,"view_count":95,"category_name":29,"create_tm":221},689117,"Basic Python Syntax","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110230001514097/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796585819&Signature=Scc%2F5G3RDclsS4ZXjuOGNoF1fQo%3D","basic-python-syntax",1794096795,{"doc_id":223,"doc_title":224,"file_type":136,"home_preview_img_url":225,"slug":226,"view_count":227,"category_name":29,"create_tm":228},19243,"Eloquent JavaScript 3rd Edition","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110229709202812/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796585819&Signature=P4IDf3y%2BqyD9udbefU%2BtbJ67ejs%3D","eloquent-javascript-3rd-edition",51,1777155815,{"doc_id":230,"doc_title":231,"file_type":136,"home_preview_img_url":232,"slug":233,"view_count":22,"category_name":29,"create_tm":234},763092,"Selenium Full Material Updated Greens","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110230045654967/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796585819&Signature=LQfcCTcV4rCgnfz7wLcjJoRUeNA%3D","selenium-full-material-updated-greens",1795999623]