Skip to content

Instantly share code, notes, and snippets.

<html>
<head>
<script>
function countWord(){
wordCount=document.getElementById('_userWord').value.trim().split(/\s+/).length;
document.getElementById('_result').value=wordCount;
}
function uniqueWords() {
var words = [];