The document contains three JavaScript programs: one to display even and odd numbers from 0 to 10, another to display prime numbers up to 100, and a third that prompts the user to change the background color of the webpage. Each program includes HTML structure and JavaScript code for functionality. The output of each program is indicated but not explicitly shown in the document.
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0 ratings0% found this document useful (0 votes)
2 views4 pages
Practical 2
The document contains three JavaScript programs: one to display even and odd numbers from 0 to 10, another to display prime numbers up to 100, and a third that prompts the user to change the background color of the webpage. Each program includes HTML structure and JavaScript code for functionality. The output of each program is indicated but not explicitly shown in the document.