Source Code:
(back to article)
Submit
Result:
Report an issue
<!DOCTYPE html> <html> <body> <p id="element"></p> <script> var names = ["Artak", "Ani", "Anna", "Artur", "Ashot"]; var girlname = names.slice(1, 3); document.getElementById("element").innerHTML = girlname; </script> </body> </html>