A new object is created and assigned properties to store information about a book. The book object has properties for the subject and author, which are set to "Perl" and "Mohtashim" respectively. The page then displays the subject and author properties of the book object.