Javascript basics practice
requirements
- You must not use built in functions that solve the given task
- Each exercise should have an example of using
- Use only external js files
Task 1
- Write a JavaScript function that accept two integers and display the largerst
- Write a JavaScript for loop that will iterate from 0 to 9. For each iteration, it will check if the current number is odd or even, and display a message to the console
- Write a JavaScript function to check whether a string is blank or not
- Test Data :
console.log(is_Blank('')); -
console.log(is_Blank(' '));
console.log(is_Blank(' abc '));
true
true
false
- Test Data :
Task 2
- Write a JavaScript function that checks whether a passed string is palindrome or not
- Write a JavaScript function that generates all combinations of a string
- Example string : 'dog'
- Expected Output : d,do,dog,o,og,g
- Write a JavaScript function that returns a passed string with letters in alphabetical order using "Bubble Sort algorithm"
- Write a JavaScript function that accepts a string as a parameter and find the longest word within the string
- Write a JavaScript function to extract unique characters from a string.
- Example string : "thequickbrownfoxjumpsoverthelazydog"
- Expected Output : "thequickbrownfxjmpsvlazydg"
THANKS FOR YOUR ATTENTION
JAVASCRIPT BASICS PRACTICE
JavaScript Basics Practice
By sinelshchikovigor
JavaScript Basics Practice
- 849