Giter Club home page Giter Club logo

Comments (7)

wise-king-sullyman avatar wise-king-sullyman commented on September 7, 2024 1

I've updated it with a combination of the above suggestions, is everyone happy with what's there now?

from javascript-exercises.

CouchofTomato avatar CouchofTomato commented on September 7, 2024

@TheOdinProject/javascript

from javascript-exercises.

wise-king-sullyman avatar wise-king-sullyman commented on September 7, 2024

Thanks for putting up this issue @maleker86.

The replit content isn't editable via PR, but if someone has a suggestion for something that's more clear leave it here and a member of the maintainer team should be able to update it.

from javascript-exercises.

thatblindgeye avatar thatblindgeye commented on September 7, 2024

We could update the Replit to be more along the lines of:

/**
 * Lets do some math!
 * Some rules first:
 *   - Replace the string values for each variable with the corresponding math equation
 *   - Do not manually enter the answers to the equations. For example, `const a = 9` would be incorrect as 9 is the answer to the equation you're being asked to write out
 */

const a = "one plus eight"
const b = "22 times three"
const c = "the *remainder* of 5/4"
const d = "the variable 'a' minus 17"
const e = "the sum of the previous four variables"

module.exports = {a, b, c, d, e}

At the very least putting the "questions" inline with the variable declarations requires less having to look up and down.

from javascript-exercises.

marlatte avatar marlatte commented on September 7, 2024

Another option with fewer changes:

* Some rules first:
  *   Replace the `"?"` with the correct math expression.
  *   Do NOT manually enter the answer. Make the computer do the work for you. 
  *   For example: if given "one plus ten," you would rewrite it to 1 + 10. Don't just write in 11.

Although I also like @thatblindgeye 's suggestion of reducing the total number of lines. If you go with that, might I recommend the first line of the rules be:

Replace the strings to the right of the = with the math expression they describe.

from javascript-exercises.

thatblindgeye avatar thatblindgeye commented on September 7, 2024

@wise-king-sullyman ++

@maleker86 what do you think of the latest update to the Replit?

from javascript-exercises.

thatblindgeye avatar thatblindgeye commented on September 7, 2024

Closing as updates were made

from javascript-exercises.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.