The js dot syntax represents the methods and properties of an object

Example: document.write ()

In assignment notation, an attribute of an object needs to be assigned

Document. The body. The innerHTML = (* * * * *)

Objects have two forms, an attribute and a method, with attributes assigned using an equal sign and methods executed using parentheses

Weite and innerHTML

Wirtre is a document method that adds content to the entire document

InnerHTML is an attribute of all the body tags, including the body tag. You can add content and tags locally to those tags

! [](https://upload-images.jianshu.io/upload_images/24142585-51d82775177f8c0b.gif? imageMogr2/auto-orient/strip)

Click “like” and go