Matthew Boyer
@TieDyeKatz
Readline themselves is not giving the error, but the result it not right. I am making a utilities app called SUtil and one of the functions is math.
Geocube101 On line 34 inside of your calc() function, instead of console.log(equ), change it to console.log(eval(equ))4 years ago
In my code, I defined the variable unit as a readline prompt, but it is only reading it as f instead of f, c, or k. My if statement is not helping he
ArchieMaclean When comparing 2 items, you need to use == instead of just =. So line 3 should read:
if (unit=="f") {
Before, you were doing one = which just sets unit to "f".
You need to sort this on lines 3, 10 and 17.
Please mark this as the answer if it solved your problem :)4 years ago
So, I don't know what's wrong with my code when it says that weatherc has already been assigned. I am using an if else statement, so it only should b
Geocube101 Would've been easier if you posted a repl link
I suggest you replace let with var4 years ago