Using Javascript and HTML we can create an input element that can convert a value from miles into yards. So for that we use formula yards=miles*1760.