complete-javascript-course
complete-javascript-course copied to clipboard
Starter files, final projects, and FAQ for my Complete JavaScript course
test pull
Hey Jonas, Not sure if this is the best place to post this, but I haven't found anywhere else. In the [Taking Decisions](https://codingheroes.io/assignments/taking-decisions-if-else-statements.html) assignment, it is written: `If your country's...
I noticed that when uploading a new recipe, everything works fine until I try to increase or decrease the number of servings. This causes strange and long floating numbers to...
/////////// Instead of this code ``` const getCountryData = function (country) { // Country 1 fetch(`https://restcountries.com/v3.1/name/${country}`) .then(response => response.json()) .then(data => { renderCountry(data[0]); const neighbour = data[0].borders[0]; if (!neighbour) return;...
////// Instead of writing this code ``` ${data.name.common} ${data.region} 👫${( +data.population / 1000000 ).toFixed(1)} people 🗣️${data.languages.urd} 💰${data.currencies.name} ``` ///// Write this code ``` ${data.name.common} ${data.region} 👫${( +data.population / 1000_000 ).toFixed(1)}...
// old (not working) // import { Fraction } from 'fractional'; // new import Fraction from 'fraction.js'; And new Fraction(ing.quantity).toFraction(true). }