I need an idea of creating methods that take elements before it
note it should take a defined element instead of an object example:
"use strict";
var element = document.getElementById('name').value;
elment.capitalize();//the capitaze should be a function
i will appriciate for your help.