Explanation:
I think it is 7, but I could be wrong..... sorry
Answer:
function countWords(sentence) {
return sentence.match(/\S+/g).length;
}
const sentence = 'This sentence has five words ';
console.log(`"${sentence}" has ${countWords(sentence)} words` );
Explanation:
Regular expressions are a powerful way to tackle this. One obvious cornercase is that multiple spaces could occur. The regex doesn't care.
Answer:
This is true
Explanation:
Comments don't effect your program at all.
The computer doesn't even read the line with the comment, what you right before the comment tells the computer to skip this line.
So you can place them anywhere
Answer:
<u>a. The scientists must be careful of how many variables they include in their simulation so they do not cause further harm to the frogs.</u>
Explanation:
It is not statistically accurate to assume that the number of variables included in the simulation would cause further harm to the frogs because we need to <em>remember </em>that a simulation is simply a computerized imitation of a real situation, which is usually not totally alike with a real process.
So in no way from a statistical standpoint, does the scientists' decision on the number of variables causes direct harm to the frogs.
Answer:
Release the mouse in the desired location.