Skip to content

abhi6799/Word-Counting-Utility-Function-Filtering-and-Reversing-an-Array-Node-Class-and-Selector-Search

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 

Repository files navigation

Review Assignment Due Date Open in Visual Studio Code

assignment-5-template

Template project for JavaScript Introduction Assignment Task 1: Word Counting Utility Functio Function Name: countWords Description: This utility function takes an input sentence and counts the occurrences of each word within the sentence. It returns an object with words as keys and their corresponding counts as values.

Task 2: Filtering and Reversing an Array Function Name: filterAndReverse Description: This utility function creates a shallow copy of an input array, filters the elements based on a callback function, and then reverses the resulting array.

Task 3: Node Class and Selector Search Class Name: Node Description: The Node class represents a tree node with a tag, children, classes, and an id. It also provides a search method to search for nodes in the tree based on a CSS-style selector string.

About

making hands dirty with javascript

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published