Different Between Getters And Setters Method
Getter's method does not take an argument, because it takes(or reads) the value from the element while the setter methods take argument since it assigns (or sets) value to the element.
jQuery text() method
jQuery text() method is used to get or set textual content to the selected elements.
Please keep in mind that the jQuery getter text() method is used to retrieve the values ??of all selected elements while other getter methods(html (), attr () and val ()) return only the value of the first selected element.