Answer:
send a threatening text in reply, then block the phone number block the phone number, then contact his phone service provider immediately delete the text, then report the incident to authorities ignore the message, then get a new cell phone number.
Explanation:
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:
The output of code is 20.
Explanation:
We need to give output of the following code:
numB = 25
while numB > 13:
numB = numB - 5
print(numB)
Solution:
We will check the condition of while loop, if the condition is true, then the statements inside the loop will be executed. Since brackets are not available so, only one statement is linked with while loop.
Executing the statements, we check condition while numB > 13 (25>13) is true, next statement will be executed numB = numB - 5 (20=25-13) so, when print(numB) will be executed, we will get 20.
The output of code is 20.