<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0" xmlns:cc="http://cyber.law.harvard.edu/rss/creativeCommonsRssModule.html">
    <channel>
        <title><![CDATA[Stories by Riley Underwood on Medium]]></title>
        <description><![CDATA[Stories by Riley Underwood on Medium]]></description>
        <link>https://medium.com/@moltencreeper25?source=rss-e4b5d4de415d------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*5Aiihcz4eli736AWpp7HeQ.png</url>
            <title>Stories by Riley Underwood on Medium</title>
            <link>https://medium.com/@moltencreeper25?source=rss-e4b5d4de415d------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Sat, 28 Nov 2026 05:31:35 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@moltencreeper25/feed" rel="self" type="application/rss+xml"/>
        <webMaster><![CDATA[yourfriends@medium.com]]></webMaster>
        <atom:link href="http://medium.superfeedr.com/" rel="hub"/>
        <item>
            <title><![CDATA[HTML Content Extractor - FreeCodeCamp Daily Challenge 6/12/2026 (JavaScript)]]></title>
            <link>https://medium.com/@moltencreeper25/html-content-extractor-freecodecamp-daily-challenge-6-12-2026-javascript-9e87e209ca5d?source=rss-e4b5d4de415d------2</link>
            <guid isPermaLink="false">https://medium.com/p/9e87e209ca5d</guid>
            <category><![CDATA[coding-practice]]></category>
            <category><![CDATA[software-engineering]]></category>
            <category><![CDATA[coding]]></category>
            <category><![CDATA[freecodecamp]]></category>
            <category><![CDATA[javascript]]></category>
            <dc:creator><![CDATA[Riley Underwood]]></dc:creator>
            <pubDate>Sun, 14 Jun 2026 02:50:43 GMT</pubDate>
            <atom:updated>2026-06-14T02:50:43.907Z</atom:updated>
            <content:encoded><![CDATA[<h3>FreeCodeCamp Daily Challenge 6/12/2026</h3><h3>HTML Content Extractor (JavaScript)</h3><p>Given a string of HTML, return the plain text content with all tags removed.</p><h3>My Solution (JS):]</h3><pre>// Create a new string using filter method.<br>function extractContent(html) {<br>  let insideTag = false<br><br>  // Filter out any characters inside &quot;&lt;&gt;&quot; including the &quot;&lt;&gt;&quot;.<br>  let insideText = html.split(&quot;&quot;).filter((char) =&gt; {<br>    if (char == &quot;&lt;&quot;) {<br>      insideTag = true<br>      return false<br>    } else if (char == &quot;&gt;&quot;) {<br>      insideTag = false<br>      return false<br>    } else if (insideTag === false) {<br>      return true<br>    }<br>  })<br>  .join(&quot;&quot;)<br><br>  console.log(insideText)<br>  return insideText;<br>}</pre><p>If you have a different solution or an improvement to this one please feel free to comment with your ideas!</p><p>My portfolio if you want to know me: <a href="https://boltenbeeper.github.io/portfolio">boltenbeeper.github.io/portfolio</a></p><p>See all the solutions I’ve done for these practice problems: <a href="https://github.com/BoltenBeeper/FreeCodeCamp-Daily-Coding-Practice-Solutions">https://github.com/BoltenBeeper/FreeCodeCamp-Daily-Coding-Practice-Solutions</a></p><p>Dave Cross also has a great solution on YouTube: <a href="https://www.youtube.com/@dave-cross">https://www.youtube.com/@dave-cross</a></p><p>Note: I do not use LLMs or AI assistance to write my code. Feel free to use this solution to learn or improve.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=9e87e209ca5d" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Zoning Regulations - FreeCodeCamp Daily Challenge 6/13/2026 (JavaScript)]]></title>
            <link>https://medium.com/@moltencreeper25/zoning-regulations-freecodecamp-daily-challenge-6-13-2026-javascript-84c953c25342?source=rss-e4b5d4de415d------2</link>
            <guid isPermaLink="false">https://medium.com/p/84c953c25342</guid>
            <category><![CDATA[software-engineering]]></category>
            <category><![CDATA[coding-practice]]></category>
            <category><![CDATA[freecodecamp]]></category>
            <category><![CDATA[coding]]></category>
            <category><![CDATA[javascript]]></category>
            <dc:creator><![CDATA[Riley Underwood]]></dc:creator>
            <pubDate>Sun, 14 Jun 2026 02:47:37 GMT</pubDate>
            <atom:updated>2026-06-14T02:47:37.292Z</atom:updated>
            <content:encoded><![CDATA[<h3>FreeCodeCamp Daily Challenge 6/13/2026</h3><h3>Zoning Regulations (JavaScript)</h3><p>Given a 2D grid (array of arrays) representing a city’s building layout, return the coordinates of all buildings that are violating zoning rules.</p><p>Each cell in the grid contains one of the labels from the table below. A building is in violation if any of its (up to) 4 neighbors, horizontal or vertical, are a type it cannot be adjacent to.</p><p>LabelTypeCannot be adjacent to&quot;i&quot;industrial&quot;R&quot;, &quot;I&quot;&quot;A&quot;Agricultural&quot;C&quot;&quot;R&quot;Residential&quot;i&quot;, &quot;C&quot;&quot;I&quot;Institutional&quot;i&quot;&quot;C&quot;Commercial&quot;R&quot;, &quot;A&quot;&quot;&quot; (empty string)undevelopedno restrictions</p><p>Return the coordinates of all violating cells as an array of [row, col] pairs, in any order. If no violations exist, return an empty array.</p><h3>My Solution (JS):</h3><pre>// An object that maps each building type to its violating neighbors.<br>let restrictionsOfType = {<br>  &quot;i&quot;: [&quot;R&quot;, &quot;I&quot;],<br>  &quot;A&quot;: [&quot;C&quot;],<br>  &quot;R&quot;: [&quot;i&quot;, &quot;C&quot;],<br>  &quot;I&quot;: [&quot;i&quot;],<br>  &quot;C&quot;: [&quot;R&quot;, &quot;A&quot;],<br>  &quot;&quot;: []<br>}<br><br>// Function to get the contents of a cell from its coordinates.<br>function cellFromCoords(coords, grid) {<br>  let [x, y] = coords<br><br>  try {<br>    return grid[y][x]<br>  } catch {<br>    return null<br>  }<br>}<br><br>// This function checks all neighbors of a cell and compares it to that cell&#39;s list of violating neighbors. Returns false if it finds a violation, true if not.<br>function validNeighbors(neighbors, cell, grid) {<br>  for (let coords of neighbors) {<br>    if (cellFromCoords(coords, grid) !== null) {<br>      if (restrictionsOfType[cell].includes(cellFromCoords(coords, grid))) {<br>        return false<br>      }<br>    }<br>  }<br><br>  return true<br>}<br><br>function getZoneViolations(grid) {<br>  let violations = []<br>  let neighbors = []<br><br>  // Using forloops, we can lable each row by its iterator.<br>  for (let y = 0; y &lt; grid.length; y++) { // y = Columns<br>    for (let x = 0; x &lt; grid[0].length; x++) { // x = Rows<br>      neighbors = [[x, y-1], [x, y+1], [x-1, y], [x+1, y]]<br>      if (validNeighbors(neighbors, grid[y][x], grid) === false) {<br>        violations.push([y, x]) // Tests want results to be backwards for some reason?<br>      }<br>    }<br>  }<br><br>  console.log(violations)<br>  return violations;<br>}</pre><p>If you have a different solution or an improvement to this one please feel free to comment with your ideas!</p><p>My portfolio if you want to know me: <a href="https://boltenbeeper.github.io/portfolio">boltenbeeper.github.io/portfolio</a></p><p>See all the solutions I’ve done for these practice problems: <a href="https://github.com/BoltenBeeper/FreeCodeCamp-Daily-Coding-Practice-Solutions">https://github.com/BoltenBeeper/FreeCodeCamp-Daily-Coding-Practice-Solutions</a></p><p>Dave Cross also has a great solution on YouTube: <a href="https://www.youtube.com/@dave-cross">https://www.youtube.com/@dave-cross</a></p><p>Note: I do not use LLMs or AI assistance to write my code. Feel free to use this solution to learn or improve.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=84c953c25342" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Jet Lagged - FreeCodeCamp Daily Challenge 6/8/2026 (JavaScript)]]></title>
            <link>https://medium.com/@moltencreeper25/jet-lagged-freecodecamp-daily-challenge-6-8-2026-javascript-997e7b51d574?source=rss-e4b5d4de415d------2</link>
            <guid isPermaLink="false">https://medium.com/p/997e7b51d574</guid>
            <category><![CDATA[freecodecamp]]></category>
            <category><![CDATA[javascript]]></category>
            <category><![CDATA[coding]]></category>
            <category><![CDATA[software-engineering]]></category>
            <category><![CDATA[coding-practice]]></category>
            <dc:creator><![CDATA[Riley Underwood]]></dc:creator>
            <pubDate>Mon, 08 Jun 2026 20:44:32 GMT</pubDate>
            <atom:updated>2026-06-08T20:45:14.863Z</atom:updated>
            <content:encoded><![CDATA[<h3>FreeCodeCamp Daily Challenge 6/8/2026</h3><h3>Jet Lagged (JavaScript)</h3><p>Given a departure city, an arrival city, a flight duration in hours, and a direction of travel, return the number of jet lag hours the traveller is experiencing.</p><p>The given cities will be from the following list that includes their UTC offset:</p><p>CityOffset</p><p>&quot;Los Angeles&quot;-8</p><p>&quot;New York&quot;-5</p><p>&quot;London&quot;0</p><p>&quot;Istanbul&quot;+3</p><p>&quot;Dubai&quot;+4</p><p>&quot;Hong Kong&quot;+8</p><p>&quot;Tokyo&quot;+9</p><p>To calculate jet lag hours:</p><ol><li>Find the timezone difference in hours between the two cities.</li><li>Determine the direction multiplier. If travelling &quot;east&quot;, it&#39;s 1.5, otherwise, it&#39;s 1.0.</li><li>Get the jet lag hours with the formula: timezone difference + (flight duration * 0.1) * direction multiplier</li></ol><p>Return the jet lag hours rounded to one decimal place.</p><h3>My Solution (JS):</h3><pre>const cityOffsets = {<br>  &quot;Los Angeles&quot;: -8,<br>  &quot;New York&quot;: -5,<br>  &quot;London&quot;: 0,<br>  &quot;Istanbul&quot;: 3,<br>  &quot;Dubai&quot;: 4,<br>  &quot;Hong Kong&quot;: 8,<br>  &quot;Tokyo&quot;: 9<br>}<br><br>const directionMultipliers = {<br>  &quot;east&quot;: 1.5,<br>  &quot;west&quot;: 1<br>}<br><br>function getJetLagHours(departureCity, arrivalCity, flightDuration, direction) {<br><br>  // Find timezone difference by subtracting departure and arrival city&#39;s UTC offsets.<br>  const timezoneDifference = Math.abs(cityOffsets[departureCity] - cityOffsets[arrivalCity])<br><br>  // Find the direction multiplier based on chart above.<br>  const directionMultiplier = directionMultipliers[direction]<br><br>  // Use given formula to find the missing jet lag hours.<br>  const jetLageHours = timezoneDifference + (flightDuration * 0.1) * directionMultiplier<br><br>  console.log(&quot;FINAL ANSWER:&quot;, jetLageHours)<br>  return jetLageHours;<br>}</pre><p>If you have a different solution or an improvement to this one please feel free to comment with your ideas!</p><p>See all the solutions I’ve done for these practice problems: <a href="https://github.com/BoltenBeeper/FreeCodeCamp-Daily-Coding-Practice-Solutions">https://github.com/BoltenBeeper/FreeCodeCamp-Daily-Coding-Practice-Solutions</a></p><p>Note: I do not use LLMs or AI assistance to write my code. Feel free to use this solution to learn or improve.</p><p>Dave Cross also has a great solution on YouTube: <a href="https://www.youtube.com/@dave-cross">https://www.youtube.com/@dave-cross</a></p><p>If you want to see more of me: <a href="https://boltenbeeper.github.io/portfolio">boltenbeeper.github.io/portfolio</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=997e7b51d574" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Last Load - FreeCodeCamp Daily Challenge 6/7/2026 (JavaScript)]]></title>
            <link>https://medium.com/@moltencreeper25/last-load-freecodecamp-daily-challenge-6-7-2026-javascript-42cf3b935c7e?source=rss-e4b5d4de415d------2</link>
            <guid isPermaLink="false">https://medium.com/p/42cf3b935c7e</guid>
            <category><![CDATA[javascript]]></category>
            <category><![CDATA[software-engineering]]></category>
            <category><![CDATA[coding-practice]]></category>
            <category><![CDATA[coding]]></category>
            <category><![CDATA[freecodecamp]]></category>
            <dc:creator><![CDATA[Riley Underwood]]></dc:creator>
            <pubDate>Mon, 08 Jun 2026 20:41:57 GMT</pubDate>
            <atom:updated>2026-06-08T20:41:57.306Z</atom:updated>
            <content:encoded><![CDATA[<h3>FreeCodeCamp Daily Challenge 6/7/2026</h3><h3>Last Load (JavaScript)</h3><p>Given the number of scoops of laundry detergent you have remaining and an array of how many scoops you used in each of the previous days, return the number of full days of detergent you have remaining.</p><p>Calculate your average daily usage from the usage history and assume that amount of usage each day going forward.</p><h3>My Solution (JS):</h3><pre>// Find average use of all days from the usage array.<br>function findAverage(array) {<br>  const total = array.reduce((acc, cur) =&gt; {<br>    return acc + cur<br>  })<br><br>  const average = total / array.length<br><br>  return average<br>}<br><br>function lastLoadDate(scoops, usage) {<br>  const averageUsage = (findAverage(usage))<br>  // Calculate remainding days left by deviding the remaining scoops by the average usage, then discarding the remainder.<br>  const remainingDays = Math.floor(scoops / averageUsage)<br>  return remainingDays;<br>}</pre><p>If you have a different solution or an improvement to this one please feel free to comment with your ideas!</p><p>See all the solutions I’ve done for these practice problems: <a href="https://github.com/BoltenBeeper/FreeCodeCamp-Daily-Coding-Practice-Solutions">https://github.com/BoltenBeeper/FreeCodeCamp-Daily-Coding-Practice-Solutions</a></p><p>Note: I do not use LLMs or AI assistance to write my code. Feel free to use this solution to learn or improve.</p><p>Dave Cross also has a great solution on YouTube: <a href="https://www.youtube.com/@dave-cross">https://www.youtube.com/@dave-cross</a></p><p>If you want to see more of me: <a href="https://boltenbeeper.github.io/portfolio">boltenbeeper.github.io/portfolio</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=42cf3b935c7e" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Schema Validator Part 5 - FreeCodeCamp Daily Challenge 6/5/2026 (JavaScript)]]></title>
            <link>https://medium.com/@moltencreeper25/schema-validator-part-5-freecodecamp-daily-challenge-6-5-2026-javascript-3ad76ed1b940?source=rss-e4b5d4de415d------2</link>
            <guid isPermaLink="false">https://medium.com/p/3ad76ed1b940</guid>
            <category><![CDATA[freecodecamp]]></category>
            <category><![CDATA[coding-practice]]></category>
            <category><![CDATA[software-engineering]]></category>
            <category><![CDATA[coding]]></category>
            <category><![CDATA[javascript]]></category>
            <dc:creator><![CDATA[Riley Underwood]]></dc:creator>
            <pubDate>Sat, 06 Jun 2026 00:34:54 GMT</pubDate>
            <atom:updated>2026-06-06T00:34:54.449Z</atom:updated>
            <content:encoded><![CDATA[<h3>FreeCodeCamp Daily Challenge 6/5/2026</h3><h3>Schema Validator Part 5 (JavaScript)</h3><p>Given an object (JavaScript) or dictionary (Python), determine if it matches the following schema:</p><pre>Roles = &quot;user&quot; | &quot;creator&quot; | &quot;moderator&quot; | &quot;staff&quot; | &quot;admin&quot;</pre><pre>{<br>  username: string,<br>  posts: number,<br>  verified: boolean,<br>  role: Roles,<br>  supporter?: boolean,<br>  badges: string[]<br>}</pre><ul><li>The pipe (|) symbol means &quot;or&quot;. role must be one of the listed Roles values.</li><li>The question mark (?) after supporter means that the field is optional, but is the specified type if it exists.</li><li>The brackets [] after string means that badges should be an array of strings (or empty).</li><li>Extra keys are allowed</li></ul><h3>My Solution (JS):</h3><pre>// Array of valid possible roles.<br>const validRoles = [&quot;user&quot;, &quot;creator&quot;, &quot;moderator&quot;, &quot;staff&quot;, &quot;admin&quot;]<br><br>// Object of all acceptable value types for each key.<br>const validSchema = {<br>  username: &quot;string&quot;,<br>  posts: &quot;number&quot;,<br>  verified: &quot;boolean&quot;,<br>  role: &quot;string&quot;,<br>  supporter: &quot;boolean&quot;,<br>  badges: &quot;object&quot;<br>}<br><br>function isValidSchema(obj, schema = validSchema) {<br>  <br>  const schemaKeys = Object.keys(schema) // Make an array of all keys in the schema object (for readability).<br><br>  // Verify all necessary keys are a part of the object and automatically pass any extra keys given.<br>  let allKeysValid = schemaKeys.every((key) =&gt; {<br>    return key in obj &amp;&amp; typeof(obj[key]) === schema[key]<br>  })<br><br>  // Verify that the role value exists and is one of the allowed obtions from the &quot;validRoles&quot; variable.<br>  let roleValid = false<br>  if (obj[&quot;role&quot;] &amp;&amp; validRoles.includes(obj[&quot;role&quot;])) {<br>    roleValid = true<br>  }<br><br>  let badgesValid = false<br>  if (obj[&quot;badges&quot;]) {<br>    badgesValid = obj[&quot;badges&quot;].every((value) =&gt; { // If there are no values, this will default to true.<br>      return typeof(value) === &quot;string&quot;<br>    })<br>  }<br><br>  // If both checks pass, consider the object verified as valid overall<br>  const verified = allKeysValid &amp;&amp; roleValid &amp;&amp; badgesValid<br>    ? true<br>    : false<br><br>  console.log(verified)<br>  return verified;<br>}</pre><p>If you have a different solution or an improvement to this one please feel free to comment with your ideas!</p><p>See all the solutions I’ve done for these practice problems: <a href="https://github.com/BoltenBeeper/FreeCodeCamp-Daily-Coding-Practice-Solutions">https://github.com/BoltenBeeper/FreeCodeCamp-Daily-Coding-Practice-Solutions</a></p><p>Note: I do not use LLMs or AI assistance to write my code. Feel free to use this solution to learn or improve.</p><p>Dave Cross also has a great solution on YouTube: <a href="https://www.youtube.com/@dave-cross">https://www.youtube.com/@dave-cross</a></p><p>If you want to see more of me: <a href="https://boltenbeeper.github.io/portfolio">boltenbeeper.github.io/portfolio</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=3ad76ed1b940" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Schema Validator Part 4 - FreeCodeCamp Daily Challenge 6/4/2026 (JavaScript)]]></title>
            <link>https://medium.com/@moltencreeper25/schema-validator-part-4-freecodecamp-daily-challenge-6-4-2026-javascript-b7bdc3c701f2?source=rss-e4b5d4de415d------2</link>
            <guid isPermaLink="false">https://medium.com/p/b7bdc3c701f2</guid>
            <category><![CDATA[coding-practice]]></category>
            <category><![CDATA[javascript]]></category>
            <category><![CDATA[freecodecamp]]></category>
            <category><![CDATA[coding]]></category>
            <category><![CDATA[software-engineering]]></category>
            <dc:creator><![CDATA[Riley Underwood]]></dc:creator>
            <pubDate>Fri, 05 Jun 2026 00:16:58 GMT</pubDate>
            <atom:updated>2026-06-05T00:16:58.703Z</atom:updated>
            <content:encoded><![CDATA[<h3>FreeCodeCamp Daily Challenge 6/4/2026</h3><h3>Schema Validator Part 4 (JavaScript)</h3><p>Given an object (JavaScript) or dictionary (Python), determine if it matches the following schema:</p><pre>Roles = &quot;user&quot; | &quot;creator&quot; | &quot;moderator&quot; | &quot;staff&quot; | &quot;admin&quot;</pre><pre>{<br>  username: string,<br>  posts: number,<br>  verified: boolean,<br>  role: Roles,<br>  supporter?: boolean<br>}</pre><ul><li>The pipe (|) symbol means &quot;or&quot;. role must be one of the listed Roles values.</li><li>The question mark (?) after supporter means that the field is optional, but is the specified type if it exists.</li><li>Extra keys are allowed</li></ul><h4>SIDE NOTE: Today’s solution is practically identical to yesterday’s. I don’t know if that’s because I did too much for yesterday’s solution or if the change today wasn’t specific enough about what it needed but I changed basically nothing today.</h4><h3>My Solution (JS):</h3><pre>// Array of valid possible roles.<br>const validRoles = [&quot;user&quot;, &quot;creator&quot;, &quot;moderator&quot;, &quot;staff&quot;, &quot;admin&quot;]<br><br>// Object of all acceptable value types for each key.<br>const validSchema = {<br>  username: &quot;string&quot;,<br>  posts: &quot;number&quot;,<br>  verified: &quot;boolean&quot;,<br>  role: &quot;string&quot;,<br>  supporter: &quot;boolean&quot;<br>}<br><br>function isValidSchema(obj, schema = validSchema) {<br>  <br>  // Verify all necessary keys are a part of the object and automatically pass any extra keys given.<br>  const givenKeys = Object.keys(obj) // Make an array of all keys in the passed object.<br>   // Check each non-extra entry verifying it matches the schema.<br>  const allKeysValid = givenKeys.every((key) =&gt; {<br>    if (key in schema) {<br>      return typeof(obj[key]) === schema[key]<br>    } else {<br>      return true<br>    }<br>  })<br><br>  // Verify that the role value exists and is one of the allowed obtions from the &quot;validRoles&quot; variable.<br>  let roleValid = false<br>  if (obj[&quot;role&quot;] &amp;&amp; validRoles.includes(obj[&quot;role&quot;])) {<br>    roleValid = true<br>  }<br><br>  // If both checks pass, consider the object verified as valid overall<br>  const verified = allKeysValid &amp;&amp; roleValid<br>    ? true<br>    : false<br><br>  console.log(verified)<br>  return verified;<br>}</pre><p>If you have a different solution or an improvement to this one please feel free to comment with your ideas!</p><p>See all the solutions I’ve done for these practice problems: <a href="https://github.com/BoltenBeeper/FreeCodeCamp-Daily-Coding-Practice-Solutions">https://github.com/BoltenBeeper/FreeCodeCamp-Daily-Coding-Practice-Solutions</a></p><p>Note: I do not use LLMs or AI assistance to write my code. Feel free to use this solution to learn or improve.</p><p>Dave Cross also has a great solution on YouTube: <a href="https://www.youtube.com/@dave-cross">https://www.youtube.com/@dave-cross</a></p><p>If you want to see more of me: <a href="https://boltenbeeper.github.io/portfolio">boltenbeeper.github.io/portfolio</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=b7bdc3c701f2" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Schema Validator Part 3 - FreeCodeCamp Daily Challenge 6/3/2026 (JavaScript)]]></title>
            <link>https://medium.com/@moltencreeper25/schema-validator-part-3-freecodecamp-daily-challenge-6-3-2026-javascript-f832be52b0a4?source=rss-e4b5d4de415d------2</link>
            <guid isPermaLink="false">https://medium.com/p/f832be52b0a4</guid>
            <category><![CDATA[coding]]></category>
            <category><![CDATA[freecodecamp]]></category>
            <category><![CDATA[software-engineering]]></category>
            <category><![CDATA[javascript]]></category>
            <category><![CDATA[coding-practice]]></category>
            <dc:creator><![CDATA[Riley Underwood]]></dc:creator>
            <pubDate>Fri, 05 Jun 2026 00:09:58 GMT</pubDate>
            <atom:updated>2026-06-05T00:09:58.740Z</atom:updated>
            <content:encoded><![CDATA[<h3>FreeCodeCamp Daily Challenge 6/3/2026</h3><h3>Schema Validator Part 3 (JavaScript)</h3><p>Given an object (JavaScript) or dictionary (Python), determine if it matches the following schema:</p><pre>Roles = &quot;user&quot; | &quot;creator&quot; | &quot;moderator&quot; | &quot;staff&quot; | &quot;admin&quot;</pre><pre>{<br>  username: string,<br>  posts: number,<br>  verified: boolean,<br>  role: Roles,<br>  supporter?: boolean<br>}</pre><ul><li>The pipe (|) symbol means &quot;or&quot;. role must be one of the listed Roles values.</li><li>The question mark (?) after supporter means that the field is optional, but is the specified type if it exists.</li><li>Extra keys are allowed</li></ul><h3>My Solution (JS):</h3><pre>// Array of valid possible roles.<br>const validRoles = [&quot;user&quot;, &quot;creator&quot;, &quot;moderator&quot;, &quot;staff&quot;, &quot;admin&quot;]<br><br>// Object of all acceptable value types for each key.<br>const validSchema = {<br>  username: &quot;string&quot;,<br>  posts: &quot;number&quot;,<br>  verified: &quot;boolean&quot;,<br>  role: &quot;string&quot;<br>}<br><br>function isValidSchema(obj, schema = validSchema) {<br>  <br>  // Verify all necessary keys are a part of the object and automatically pass any extra keys given.<br>  const givenKeys = Object.keys(obj) // Make an array of all keys in the passed object.<br>   // Check each non-extra entry verifying it matches the schema.<br>  const allKeysValid = givenKeys.every((key) =&gt; {<br>    if (key in schema) {<br>      return typeof(obj[key]) === schema[key]<br>    } else {<br>      return true<br>    }<br>  })<br><br>  // Verify that the role value exists and is one of the allowed obtions from the &quot;validRoles&quot; variable.<br>  let roleValid = false<br>  if (obj[&quot;role&quot;] &amp;&amp; validRoles.includes(obj[&quot;role&quot;])) {<br>    roleValid = true<br>  }<br><br>  // If both checks pass, consider the object verified as valid overall<br>  const verified = allKeysValid &amp;&amp; roleValid<br>    ? true<br>    : false<br><br>  console.log(verified)<br>  return verified;<br>}</pre><p>If you have a different solution or an improvement to this one please feel free to comment with your ideas!</p><p>See all the solutions I’ve done for these practice problems: <a href="https://github.com/BoltenBeeper/FreeCodeCamp-Daily-Coding-Practice-Solutions">https://github.com/BoltenBeeper/FreeCodeCamp-Daily-Coding-Practice-Solutions</a></p><p>Note: I do not use LLMs or AI assistance to write my code. Feel free to use this solution to learn or improve.</p><p>Dave Cross also has a great solution on YouTube: <a href="https://www.youtube.com/@dave-cross">https://www.youtube.com/@dave-cross</a></p><p>If you want to see more of me: <a href="https://boltenbeeper.github.io/portfolio">boltenbeeper.github.io/portfolio</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=f832be52b0a4" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Parenthesis Combinations - FreeCodeCamp Daily Challenge 5/31/2026 ( JavaScript)]]></title>
            <link>https://medium.com/@moltencreeper25/parenthesis-combinations-freecodecamp-daily-challenge-5-31-2026-javascript-6a2090cdce0b?source=rss-e4b5d4de415d------2</link>
            <guid isPermaLink="false">https://medium.com/p/6a2090cdce0b</guid>
            <category><![CDATA[software-engineering]]></category>
            <category><![CDATA[coding-practice]]></category>
            <category><![CDATA[coding]]></category>
            <category><![CDATA[javascript]]></category>
            <category><![CDATA[freecodecamp]]></category>
            <dc:creator><![CDATA[Riley Underwood]]></dc:creator>
            <pubDate>Sun, 31 May 2026 22:55:51 GMT</pubDate>
            <atom:updated>2026-05-31T22:55:51.230Z</atom:updated>
            <content:encoded><![CDATA[<h3>FreeCodeCamp Daily Challenge 5/31/2026</h3><h3>Parenthesis Combinations</h3><p>Given an integer, n, return the number of valid combinations of n pairs of parentheses.</p><ul><li>A valid combination is a string where every opening parentheses has a corresponding closing parentheses, and no closing parentheses appears before its matching opening parentheses.</li></ul><p>For example, given 2, there are 2 valid combinations:</p><pre>(())<br>()()</pre><h3>My Solution (JS):</h3><pre>// Function to get the factorial of a number. (represented as n! in math)<br>function factorial(n) {<br>  let newN = n<br>  while (n &gt; 2) {<br>    n --<br>    newN *= n<br>  }<br>  return newN<br>}<br><br>// Function to apply Catalan formula to a number.<br>function catalan(n) {<br>  return factorial(2 * n) / (factorial(n + 1) * factorial(n))<br>}<br><br>// Visualizing all possible combinations for the first few possible numbers shows a pattern reflected in the Catalan formula.<br>// Apply Catalan formula to the given number and round it out as large numbers can break in JavaScript.<br>function getCombinations(n) {<br>  let res = Math.round(catalan(n))<br>  console.log(res)<br>  return res;<br>}</pre><p>If you have a different solution or an improvement to this one please feel free to comment with your ideas!</p><p>See all the solutions I’ve done for these practice problems: <a href="https://github.com/BoltenBeeper/FreeCodeCamp-Daily-Coding-Practice-Solutions">https://github.com/BoltenBeeper/FreeCodeCamp-Daily-Coding-Practice-Solutions</a></p><p>Note: I do not use LLMs or AI assistance to write my code. Feel free to use this solution to learn or improve.</p><p>Dave Cross also has a great solution on YouTube: <a href="https://www.youtube.com/@dave-cross">https://www.youtube.com/@dave-cross</a></p><p>If you want to see more of me: <a href="https://boltenbeeper.github.io/portfolio">boltenbeeper.github.io/portfolio</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=6a2090cdce0b" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Wider Aspect Ratio - FreeCodeCamp Daily Challenge 5/29/2026 (JavaScript)]]></title>
            <link>https://medium.com/@moltencreeper25/wider-aspect-ratio-freecodecamp-daily-challenge-5-29-2026-javascript-b983752d4283?source=rss-e4b5d4de415d------2</link>
            <guid isPermaLink="false">https://medium.com/p/b983752d4283</guid>
            <category><![CDATA[coding]]></category>
            <category><![CDATA[freecodecamp]]></category>
            <category><![CDATA[coding-practice]]></category>
            <category><![CDATA[software-engineering]]></category>
            <category><![CDATA[javascript]]></category>
            <dc:creator><![CDATA[Riley Underwood]]></dc:creator>
            <pubDate>Fri, 29 May 2026 21:03:21 GMT</pubDate>
            <atom:updated>2026-05-29T21:03:21.029Z</atom:updated>
            <content:encoded><![CDATA[<h3>FreeCodeCamp Daily Challenge 5/29/2026</h3><h3>Wider Aspect Ratio (JavaScript)</h3><p>Given two strings for different image dimensions, return the aspect ratio of the image with a greater width-to-height ratio.</p><ul><li>The given strings will be in the format &quot;WxH&quot;, for example, &quot;1920x1080&quot;.</li><li>The aspect ratio is the ratio of width to height, reduced to the lowest whole numbers. For example, &quot;1920x1080&quot; reduces to &quot;16:9&quot;.</li><li>Return a string in format &quot;W:H&quot;, for example, &quot;16:9&quot;.</li></ul><h3>My Solution (JS):</h3><pre>// Get all evenly divisable numbers of a passed number.<br>function evenlyDivisableNums(num) {<br>  let denoms = []<br><br>  for (let i = 1; i &lt;= (num / 2); i++) {<br>    if (num % i == 0) {<br>      denoms.push(i)<br>    }<br>  }<br>  denoms.push(num)<br><br>  return denoms<br>}<br><br>// Find the greatest denominator between the width and hieght with the evenlyDivisableNums() function made above.<br>function greatestDenominatorOf(num1, num2) {<br>  let num1Denoms = evenlyDivisableNums(+num1)<br>  let num2Denoms = evenlyDivisableNums(+num2)<br><br>  let greatestDenom<br>  for (const item of num1Denoms.reverse()) {<br>    if (num2Denoms.includes(item)) {<br>      greatestDenom = item<br>      break<br>    }<br>  }<br><br>  return greatestDenom || 1 // Default to 1 to avoid errors.<br>}<br><br>// Find the larger ratio then return a formatted version of it in the smallest ratio representation possible.<br>function getWiderAspectRatio(a, b) {<br>  // Split strings into separate numbers. (Still strings at this point, just separated.)<br>  const aNums = a.split(&quot;x&quot;)<br>  const bNums = b.split(&quot;x&quot;)<br><br>  let largestRatio = &quot;&quot;<br>  let greatestDenom = 1 // Default to 1 to avoid errors.<br>  if (+aNums[0] &gt; +bNums[0]) {<br>    greatestDenom = greatestDenominatorOf(aNums[0], aNums[1])<br>    largestRatio = (aNums[0] / greatestDenom + &#39;:&#39; + aNums[1] / greatestDenom)<br>  } else {<br>    greatestDenom = greatestDenominatorOf(bNums[0], bNums[1])<br>    largestRatio = (bNums[0] / greatestDenom + &#39;:&#39; + bNums[1] / greatestDenom)<br>  }<br><br>  console.log(largestRatio)<br>  return largestRatio;<br>}</pre><p>If you have a different solution or an improvement to this one please feel free to comment with your ideas!</p><p>See all the solutions I’ve done for these practice problems: <a href="https://github.com/BoltenBeeper/FreeCodeCamp-Daily-Coding-Practice-Solutions">https://github.com/BoltenBeeper/FreeCodeCamp-Daily-Coding-Practice-Solutions</a></p><p>Note: I do not use LLMs or AI assistance to write my code. Feel free to use this solution to learn or improve.</p><p>Dave Cross also has a great solution on YouTube: <a href="https://www.youtube.com/@dave-cross">https://www.youtube.com/@dave-cross</a></p><p>If you want to see more of me: <a href="https://boltenbeeper.github.io/portfolio">boltenbeeper.github.io/portfolio</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=b983752d4283" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Sum of Differences - FreeCodeCamp Daily Challenge 5/26/2026 (JavaScript)]]></title>
            <link>https://medium.com/@moltencreeper25/sum-of-differences-freecodecamp-daily-challenge-5-26-2026-javascript-8402eeef98c0?source=rss-e4b5d4de415d------2</link>
            <guid isPermaLink="false">https://medium.com/p/8402eeef98c0</guid>
            <category><![CDATA[coding-practice]]></category>
            <category><![CDATA[javascript]]></category>
            <category><![CDATA[freecodecamp]]></category>
            <category><![CDATA[software-engineering]]></category>
            <category><![CDATA[coding]]></category>
            <dc:creator><![CDATA[Riley Underwood]]></dc:creator>
            <pubDate>Tue, 26 May 2026 23:01:10 GMT</pubDate>
            <atom:updated>2026-05-26T23:01:10.819Z</atom:updated>
            <content:encoded><![CDATA[<h3>FreeCodeCamp Daily Challenge 5/26/2026</h3><h3>Sum of Differences (JavaScript)</h3><p>Given an array of numbers, return the sum of the differences between each number and the one that follows it.</p><p>For example, given [1, 3, 4], return 3 (2 + 1).</p><h3>My Solution (JS):</h3><pre>// Add all elements in an array of numbers.<br>function sumOfArray(arr) {<br>  return arr.reduce((acc, cur) =&gt; {<br>    return acc + cur<br>  })<br>}<br><br>function sumOfDifferences(arr) {<br>  // Create a new array of just the differences in the numbers of the original array.<br>  let toAdd = arr.reduce((acc, cur, i) =&gt; {<br>    return arr[i + 1]<br>    ? [...acc, (arr[i + 1] - cur)]<br>    : acc<br>  }, [])<br><br>  const diffSum = sumOfArray(toAdd)<br>  <br>  console.log(diffSum)<br>  return diffSum;<br>}</pre><p>If you have a different solution or an improvement to this one please feel free to comment with your ideas!</p><p>See all the solutions I’ve done for these practice problems: <a href="https://github.com/BoltenBeeper/FreeCodeCamp-Daily-Coding-Practice-Solutions">https://github.com/BoltenBeeper/FreeCodeCamp-Daily-Coding-Practice-Solutions</a></p><p>Note: I do not use LLMs or AI assistance to write my code. Feel free to use this solution to learn or improve.</p><p>Dave Cross also has a great solution on YouTube: <a href="https://www.youtube.com/@dave-cross">https://www.youtube.com/@dave-cross</a></p><p>If you want to see more of me: <a href="https://boltenbeeper.github.io/portfolio">boltenbeeper.github.io/portfolio</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=8402eeef98c0" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>