Convert binary to english characters using javascript
One-liner solution with ES6 syntax
One-liner solution with ES6 syntax
You can loop through the array entries, check if it’s an array with isArray() and recursively flatten the entries of the array as below:
What is a palindrome? Palindrome is a word or phrase which reads same if reversed. For example – if we reverse Racecar it will read the same both backward or forwards. A few examples of words that are palindrome are Noon, Racecar, Wow, Refer, etc.
Count words for a textarea field using javascript
Create two css class draw to give white background box on which we will draw the check or dot and get the X and Y coordinates. Link Vue Js CDN to use Vue framework Create an instance of Vue and create app id Now create drawDot() and drawCheck() methods to add Check or Dot and …
Convert string into an url slug using javascript
Sort an array using javascript
Make every first letter of a word capitalized
Convert Celsius to Fahrenheit using javascript
Create below three files in a folder index.html app.js style.css We will be using Vue js CDN version 3.0.5<script src=”https://unpkg.com/[email protected]″></script> First we will create index.html with below code. In this code id=”app” will display the output based on the Vue components. Now create vue app using below code and print “Hello World!!” Now you can run …
Here we are creating a questions.js file in which we will declare an array of questions and user will be prompted to provide the answers. Then we will display the out on console. To run the javascript file, please install nodejs and run node questions command.
Fizz Buzz Print the numbers from 1 to 100. Multiples of three print “Fizz” with the number and for the multiples of five print “Buzz” with the number. If number is multiples of both three and five display “FizzBuzz” and number.
Recursion to generate range of numbers
Create permutations for an array using javascript
Create combinations of an array using javascript