Challenge: Get Elements Using Attributes
This challenge will test your skills in implementing DOM related functions to create a function "getElementByAttribute".
We'll cover the following
Problem statement #
Your task is to convert the input entered for First name to Upper Case.
Note: Do not modify the input entered for the Last name. It should stay as it is.
You need to do this by implementing the functions getElementByAttribute
(that accesses an element of the DOM using its attribute
) and the function lowerupper
.
Take a look at the HTML code first before writing the JavaScript code.
Input #
First name and Last name
Output #
The first name in capital letters and the lower name as it is
Sample input #
"First name": "Bob"
"Last name" : "Builder"
Sample output #
"BOB"
"Builder"
Level up your interview prep. Join Educative to access 70+ hands-on prep courses.