fix
This commit is contained in:
parent
93bd71abd5
commit
b999bc02f8
5
e1.py
5
e1.py
@ -14,8 +14,9 @@ def index():
|
|||||||
function count()
|
function count()
|
||||||
{
|
{
|
||||||
var text = document.getElementById('text')
|
var text = document.getElementById('text')
|
||||||
var result = (text.value.match(/[A-Z]/g) || []).length
|
var capitals = (text.value.match(/[A-Z]/g) || []).length
|
||||||
document.getElementById('result').textContent = `duze: ${result} male: ${text.value.length - result}`
|
var noncapitals = (text.value.match(/[a-z]/g) || []).length
|
||||||
|
document.getElementById('result').textContent = `duze: ${capitals} male: ${noncapitals}`
|
||||||
}
|
}
|
||||||
</script>
|
</script>
|
||||||
</head>
|
</head>
|
||||||
|
@ -0,0 +1 @@
|
|||||||
|
Flask==1.1.2
|
Loading…
Reference in New Issue
Block a user