JavaScript getYear Function

JavaScript getYear is one of the Date Functions which returns the current year of a given date minus 1900. The syntax of the getYear function is: Date.getYear() JavaScript getYear Example We use the getYear function to return the year (year – 1900) in the current date and time. <!DOCTYPE html> <html> <head> <title> JS </title> </head> … Read more