Sunday, 5 June 2016

Implement a Javascript Program that to use of slice() method

Implement a Javascript Program that to use of slice() method







For More Java Script Programs   Seo Veerendra


<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title></title>
    <script>    
        function getIntrestingSubjects()
        {
            var subjects = ['C#.Net', 'ASP.Net', 'JavaScript', 'JQuery', 'MVC', 'SQl Server'];//This is array declaration in Java Script
            alert('My Intersting Subjects are : ' + subjects.slice(1, 5));
        }
    </script>
</head>
<body>
    <form id="form1" runat="server">
    <div>
    <p>C#.Net,ASP.Net,JavaScript,JQuery,MVC,SQl Server</p>
        <asp:Button ID="btnClick" Text="Submit" runat="server" OnClientClick="getIntrestingSubjects();" />
    </div>
    </form>
</body>
</html>

No comments :

Post a Comment