My favorite film

My favorite movie is Harry Potter. I remember when I first accidentally browsed the TV channel and it was one of the series of Harry Potter on TV. From the very first moment I was very interested, so I started watching it. I saw that series of Harry Potter’s and realized that I wanted to […]

Ծրագրավորում

Գրել ֆունկցիա, որը որպես պարամետր ստանում է տող, իսկ որպես արդյունքում վերադարձնում այդ սիմվոլների քանակը։ var string=”Տվյալ օբյեկտի երկարությունը”; document.write(string.length+”<br>”); Օգտատիրոջից հարցրեք ցանկացած բառ և ֆունկցիային որպես պարամետր տվեք այդ բառը։ Էկրանին արտածեք հաղորդագրություն, որում կասվի թե քանի սիմվոլից է բաղկացած այդ բառը։ var word=prompt(“Գրեք որևէ բառ։”); document.write(word.length+”<br>”); Օգտատիրոջից հարցրեք ցանկացած բառ, կանչեք ֆունկցիան և […]