<repo_name>dashakhan/katas<file_sep>/print each from min to max.js
// given two numbers, one is bigger then other
// print all nums from min to max
// - check which is min/max
// - loop where i is min and i < max
// create empty arr, return push in that array
//

// function num(a, b){
//   let arr=[]
//   let min = a < b ? a  : b
//   let max = a === min ? b : a
//   for(let i = min; i <= max ; i++){
//     arr.push(i)
// } return arr
// }

// console.log(num(55,22));


// errors
// i put arr.push[i] insted arr.push(i)
// i cant push arr[i] becouse this element
// doesnt even exist yet. (i) is the number in the loop

<file_sep>/palindrome num.js
// function isPalindrome(num){
// let str1 = ''
// num = num + ''
// for(let i = num.length - 1; i >= 0; i--){
// str1 = str1 + num[i]
// }
//   if(str1 === num){
// return 'palindrome'
// } return 'not a palindrome'
// }

// console.log(isPalindrome(656));
<file_sep>/str reverse.js

// function reverse(b){
//   let b1 = ''
//   for(let i = b.length -1; i >= 0; i--){
//     b1 = b1 + b[i]
//   }return b1
//   }
// console.log(reverse('Nannnu'));
<file_sep>/cats Dogs years.js
//https://www.codewars.com/kata/5a6663e9fd56cb5ab800008b



// var humanYearsCatYearsDogYears = function(humanYears) {
//     let catY = 15
//     let dogY = 15
//     if(humanYears === 1)
//         return [humanYears, catY, dogY]
//     if(humanYears === 2){
//         return [humanYears, catY += 9, dogY += 9]
//     } if(humanYears > 2){
//         return [humanYears, ((humanYears - 2)* 4)+ 24,((humanYears - 2)* 5)+ 24]
//     }
// }<file_sep>/str includes.js
// does this string includes vowels?


// function vow(str){
//   let str1 = ''
//   for(let i = 0; i < str.length;i++){
//     if('aeouiy'.includes(str[i])){
//         str1 = str1 + str[i]
//         }
//   }return str1
// }

// console.log(vow('byoba'));
<file_sep>/Shark Pontoon.js
//https://www.codewars.com/kata/57e921d8b36340f1fd000059
// 8 kata


// function shark(pontoonDistance, sharkDistance, youSpeed, sharkSpeed, dolphin){
//     if(dolphin === true){
//         sharkSpeed = sharkSpeed / 2
//     }
//     let yourTime = pontoonDistance / youSpeed
//     let sharkTime = sharkDistance / sharkSpeed
//     if(yourTime <  sharkTime){
//         return 'Alive!'
//     } return 'Shark Bait!'
// }


<file_sep>/Seats in bus.js
//https://www.codewars.com/kata/5875b200d520904a04000003
// how many ppl will wait


// function enough(cap, on, wait) {
//     let seats = cap - on
//     if(cap - (on + wait) >= 0){
//         return 0
//     }
//     else if(seats < wait ) {
//         return (wait - seats)
//     }
// }