A Pen by Irene Lakhno

Thumbnail
This awesome code was written by IreneLakhno, you can see more from this user in the personal repository.
You can find the original code on Codepen.io
Copyright IreneLakhno ©
  • HTML
  • CSS
  • JavaScript
     <!-- <!DOCTYPE html>-->
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<body>
    <input type="text" id="someText25" value=''>
<!--    //<input type="button" value="Hello!" name="hello" id="buttonTask24"> -->
</body>
</html>  

<!-- <script type='text/javascript'>
function func(objID)
{
console.log(documend(ot.getElementByIbjID).value);
}
 -->
<!-- 
</script>

<input type = 'text' name = 'size' id = 'size'/>
<input type = 'text' name = 'size2' id = 'size2' onBlur = 'func("size2")'/> -->

/*Downloaded from https://www.codeseek.co/IreneLakhno/a-pen-by-irene-lakhno-jwxqzK */
    


/*Downloaded from https://www.codeseek.co/IreneLakhno/a-pen-by-irene-lakhno-jwxqzK */
    // function addText(){
//     document.querySelector("someText").innerText = "Hello!";
// }

// document.getElementById("buttonTask21").addEventListener("click", addText, false);

// function addInput(){
//     // document.getElementById('someText').innerHTML='<input type="text" name="text1" value="nhjh" />';
//   var input=document.createElement('input');
// input.type = 'text';
// input.name = 'value';
// document.body.appendChild(input);
// }

// document.getElementById("buttonTask24").addEventListener("click", addInput, false);
// var input = document.getElementById("someText25");
//  function focusInput(){
//  var val = input.value;
//  console.log(val);
//  };

// input.addEventListener("blur", focusInput, false);

// function concatPhrase (){
//    var arrPhrase = ['Hello', 'world', '!'];
//    var prize = arrPhrase.join(' ');
//    console.log(prize.replace(/\s/g,''));
// }
// concatPhrase();

// function foundNumber(){
//     var numbers = [1, 2, 5, 9, 4, 13, 4, 10];
//     var i = 0;
    
//     for(i; i<numbers.length; i++){
//         if(numbers[i] === 4){
//             console.log('Present!');
//             return;
//         }
//     }
//    console.log('Not found!'); 
// };
// foundNumber();

// function foundInTwoArrays(numbersOne, numbersTwo){
//     var newArr = []; 
//     for(var i = 0; i < numbersOne.length; ++i){
//         for(var j = 0; j < numbersTwo.length; ++j){
//             if (numbersOne[i] == numbersTwo[j]) 
//                 newArr.push(numbersOne[i]);
     
      
//         }
//     }
//   console.log(newArr);
//   return newArr;
// };
// foundInTwoArrays([1,2,8,9,14,91,3,21], [2,3,7,8,14,72]);

function recursion(arr){
    var n = arr.length;
    if(n >= 0) {
      var x;
      return x = recursion(n - 1);
       console.log(x);
    }
 
};

recursion([1,9,18,4,3]);

Comments