Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function solve() {
- let optionList = document.querySelectorAll("#selectMenuTo")[0];
- let button = document.querySelector('button');
- let input = document.querySelector('#input');
- let optionBinary = document.createElement('option');
- optionBinary.textContent = 'Binary';
- let optionHexadecimal = document.createElement('option');
- optionHexadecimal.textContent = 'Hexadecimal';
- optionList.appendChild(optionBinary);
- optionList.appendChild(optionHexadecimal);
- let result = 0;
- if (optionList.textContent==="Binary"){
- console.log('Its binary');
- }else if(optionList.textContent==='Hexadecimal'){
- console.log('its hexade');
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement