Question: Complete the following challenges. Write a JavaScript function that accepts a number as a parameter and check the number is prime or not. Then writes

Complete the following challenges.

Write a JavaScript function that accepts a number as a parameter and check the number is prime or not. Then writes the result to the document. Note: A prime number (or a prime) is a natural number greater than 1 that has no positive divisors other than 1 and itself.

Write a JavaScript function that checks if a person is allowed to drink in the state of PA according to the year they were born. The results should be written to the console and the document.

Write a JavaScript function that counts in the console log until it reaches the number that was passed to it.

Write a javascript function that checks if a value passed to it is true and then write the result to the document.

Write JavaScript that will take a sentence and write each word separately to console.

look here for help: https://www.w3schools.com/jsref/jsref_split.asp (Links to an external site.)Links to an external site.

Write the JavaScript to add content to a div with the id myChatter.

be creative - look here for help: https://www.w3schools.com/jsref/jsref_statements.asp (Links to an external site.)Links to an external site.

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!