Welcome!

By registering with us, you'll be able to discuss, share and private message with other members of our community.

SignUp Now!

refactor

  1. TheShanachie

    Node.JS Is there a better way to write this JS which is dependent on a Promise?

    In a current JS web application. I am currently rendering my pages with specific information from a MongoDB Atlas cluster. Unfortunately, I don't know enough about JS to fix a major issue. The current code queries the Database each time a page is rendered as far as I understand. This seems like...
  2. J

    HTML & CSS Need Help Using Semantic Elements - Refactor Code

    Hi Everyone, I am starting out on learning how to code (the proper way) and I simply am at a total loss or confusion. I need to be able to refactor code using semantic elements in HTML & CSS. I cant figure out where to break each section or where to use its proper semantic element so that its...
  3. J

    HTML & CSS How to Properly refactor your code using Semantic Elements HTML & CSS

    Hi Everyone, I am starting out on learning how to code and I simply am at a total loss or confusion. I need to be able to refactor code using semantic elements in HTML & CSS. I cant figure out where to break each section or where to use its proper semantic element so that its not using so many...
  4. J

    JavaScript Help combining two functions

    Hi, I have these two functions which have mostly similar code.. so I want to combine them into one function.. any help appreciated. previousMonthImg.onclick = function() { if (!(monthSelect.value === "Jan" && yearSelect.value === "2010")) { monthSelect.selectedIndex--; if...
Back
Top Bottom