JSFiddle - React, Tailwind, and code Playground

HTML

<input id="abc" type="text" />
<input id="def" />

JavaScript

var x = document.querySelectorAll('input[type=text]');
console.log("1", x);
var y = document.querySelectorAll('input[type]');
console.log("2", y);
var z = document.querySelectorAll('input[type=""]');
console.log("3", z);
var a = document.querySelectorAll('input');
console.log("4", a);