DEV Community πŸ‘©β€πŸ’»πŸ‘¨β€πŸ’»

DEV Community πŸ‘©β€πŸ’»πŸ‘¨β€πŸ’» is a community of 966,904 amazing developers

We're a place where coders share, stay up-to-date and grow their careers.

Create account Log in
Adam Crockett
Adam Crockett

Posted on

πŸš‚ Model Railroad Scale Calculator Function πŸš‡

As I am at home a lot, Just for fun, I am starting to look at modelling a railroad / railway, cool but I don't do very often maths, so I used some code to write a function to help me out.

I have been wracking my brain about a function helps me translate real world measurements into a Guage such as HO or OO - this gauge correlates with a scale for example OO 1:76

You might find it useful πŸ€·β€β™‚οΈ

Top comments (2)

Collapse
 
pandademic profile image
Pandademic

Excuse me , your code block is empty.

Collapse
 
adam_cyclones profile image
Adam Crockett Author • Edited on

Although tree there is nothing rendering, take a look at the JavaScript tab in this codesand box frame

(Swipe the left hand white line to the right first)

Visualizing Promises and Async/Await 🀯

async await

☝️ Check out this all-time classic DEV post