The document defines a JavaScript object to store student information including name, roll number, department, and grade. It then displays this information by getting the student information div element and populating it with the student data using template literals. The HTML code defines a page with a title and div to display the student information by including the JavaScript file.
The document defines a JavaScript object to store student information including name, roll number, department, and grade. It then displays this information by getting the student information div element and populating it with the student data using template literals. The HTML code defines a page with a title and div to display the student information by including the JavaScript file.
The document defines a JavaScript object to store student information including name, roll number, department, and grade. It then displays this information by getting the student information div element and populating it with the student data using template literals. The HTML code defines a page with a title and div to display the student information by including the JavaScript file.
displayStudentInfo(); HTML program for the same : <!DOCTYPE html> <html> <head> < tle>Student Informa on</ tle> </head> <body> <h1>Student Informa on</h1> <div id="studentInfo"> <!-- Student informa on will be displayed here --> </div> <script src="student.js"></script> </body> </html>