0
Help!!
Please how do you go about this… It’s confusing figuring it out. In the office, 2 monitors are connected to each computer. The first line of the given code takes the number of computers as input. Task Complete the code to calculate and output the number of monitors to the console. Sample Input 10 Sample Output 20 Hint Since each computer has 2 monitors, simply multiply the count of the computers by 2. Given: Var computers = parseInt(readLine(), 10
10 odpowiedzi
+ 2
Pxavier
In the previous code coach, SoloLearn said:
//so we don’t overwhelm you, we’ve hidden the code that executes the input
So, why do you get overwhelmed? To cite some B movie: "All will be revealed!" 🤣
+ 2
𝓕𝓛𝓨 Good job! You helped him a lot. For the next code coach, help him with private messages and don't let him to put another post. 😉
LE: Everyone was a beginner => not like this man! You will never help a beginner like this, giving the solution away. You must give hints.
+ 1
Pxavier
OMG! Are you serios?!
Read that info 10 times and see what happens.
PS: you need to use console.log() function, cuz document.write() doesn't work. I tested this.
0
Romeo Cojocaru i honestly cant figure it out. Cause i dont understand what “parseInt(readLine” mean. What a i suppose to do with that?
0
𝓕𝓛𝓨 Thank you.
Could you help explain whats parseInt(readLine doing there?
0
Romeo Cojocaru
Please what is wrong with this my code?!
It keeps saying error ‘fix bug’
😢😢😢😢😢
Can you help🙏🏿🙏🏿
function main() {
var eventExample = readLine();
// function call
setReminder(eventExample);
}
//complete the function
function setReminder(eventExample){
console.log("You set a reminder about " + eventExample);
}
setReminder("workout");
0
Pxavier I don't know this code coach in JavaScript. Give the full info about it.
- 1
Romeo Cojocaru What is needed at first is enthusiasm, not just anxiety
- 1
Pxavier
The document would be helpful.
https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/parseInt
- 2
May be my fault.