Character entity Character entities are reserved for displaying various characters in the browser. A character entity looks like this: &entity_name; OR &#entity_number; For instance, the less than symbol (<) and greater than symbol (>) are reserved for tags in HTML. To display a less than sign (<) we must write: &lt; or &#60; You can also use the &nbsp; character entity in specific places to prevent words that should stay together from breaking into the next line. new Date() new Date() creates a new date object with the current date and time: getDate() The JavaScript date getDate() method is used to get the integer value between 1 and 31 that represents the day for the particular date on the basis of local time. Count() The count() function is used to count the number of collections in the element. In JavaScript, the array is first converted to a collection and then the function is applied to the collection.