We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 624bdc4 commit 840b14cCopy full SHA for 840b14c
text-counter-f-sharp-application/text-counter-fable/src/App.fs
@@ -2,7 +2,7 @@ module App
2
3
open Browser.Dom
4
// Text content area
5
-let textcontent =
+let textContent =
6
document.getElementById ("textContent") :?> Browser.Types.HTMLTextAreaElement
7
8
// Update text counter button
@@ -15,7 +15,7 @@ let textOutput =
15
// Update text counter output when button is clicked
16
updateText.onclick <-
17
fun _ ->
18
- let textString = textcontent.value
+ let textString = textContent.value
19
let characters = textString.Length //number of characters
20
let words = textString.Split(' ').Length //number of words
21
let lines = textString.Split('\n').Length //number of lines
0 commit comments