repeatChar in Node.js

Background Let us continue with our task of seeing how repeatChar is coded in various languages. In this post, we will use JavaScript. Specifically, NodeJS.   Code Outline Function:-repeatChar ( char ch, int numberofChars) Declare Variables buffer as an array ( var buffer = [] ) Validate Arguments ch Check if ch is a string … Continue reading repeatChar in Node.js

Javascript:- Get time block

Background I need to get the current time in 15 minutes brackets.   Code   Output   Tools Online JavaScript Simulation Environment Upon Googling, discovered ( ). Went with it. Works a charm. Code Sharing Git / Gist Link

JavaScript – Is WebStorage/DomStorage Enabled?

Definition First what is Web Storage/Document Object Model Storage (DOM)? Web storage and DOM storage (Document Object Model storage) are web application software methods and protocols used for storing data in a web browser. Web storage supports persistent data storage, similar to cookies but with a greatly enhanced capacity and no information stored in … Continue reading JavaScript – Is WebStorage/DomStorage Enabled?