JS String
by Patel1327
HTML
<button onclick="String ()">
String
</button>
<p id=" Hello">
</p>
JavaScript
function String() {
var x = prompt("Give me a string yo!")
if (x.length == 4) {
alert("4")
document.getElementById("Hello").substring(1,2)
}
}