Posts

Showing posts from July, 2019

Simple Program Using TypeScript || Program in TypeScript

Image
In this video,I explained a simple program in TypeScript . Feel free to comment. For more, please subscribe and press the BELL icon.  Please visit my  Angular Playlist  . Please visit my  YouTube videos . The code is as follows - simple_program.ts -  function simple (msg) {   console.log(msg); } var msg = "Hello World ...!!!"; simple(msg); function f1(x) {   console.log(x); } var x = "This is my second function in typescript"; f1(x); function f2(a) {   console.log(a); } var a = 10 + 20; f2(a);

Introduction to Angular || Setting Up Angular

Image
In this video,I explained the  Introduction Of Angular and basic requirement for it. Feel free to comment. For more, please subscribe and press the BELL icon. Please visit my  YouTube Videos .

Exercise in JS || Simple Exercise in JavaScript

Image
In this video,I explained a Simple Exercise in JavaScript . Feel free to comment. For more, please subscribe and press the BELL icon. Please visit my  JavaScript Playlist Please visit my  YouTube Videos . The code is as follows - HTML Code - <html>   <head>     <script>   function even_odd() {     var x = parseInt(document.getElementById("no").value); if (x % 2 == 0) {   alert("Its a Even Number"); }     else {   alert("Its a Odd Number"); }   } </script>   </head>   <body>   <form>      Enter any number:-  <input type="number" id="no"> <button onclick="even_odd()"> Check the number </button> <input type="reset" value="Reset">   </form>   </body> </html>

Prompt Dialog Box in JavaScript || JavaScript Dialog Box

Image
In this video,I explained the Prompt Dialog Box in JavaScript . Feel free to comment. For more, please subscribe and press the BELL icon. Please visit my  JavaScript Playlist . The code is as follows - HTML Code -  <html>   <head>      <title> Prompt Dialog Box </title>   </head>     <body>     <p> Press this BUTTON </p> <button onclick="myprompt()"> Prompt Concept </button> <p id="prompt"> </p> <script>   function myprompt() {    var x = prompt("Please enter your name");    if (x != null) {      document.getElementById("prompt").innerHTML = "Hi " + x ;    }     } </script>   </body> </html>

Confirm Dialog Box in JavaScript || JavaScript Dialog Box

Image
In this video,I explained the Confirm Dialog Box in JavaScript . Feel free to comment. For more, please subscribe and press the BELL icon.  Please visit my  JS Playlist . The code is as follows - HTML Code - <html>  <head>      <title> Confirm Dialog Box </title>  </head>  <body>    <script language="javascript">      var x= confirm("Press any two Buttons");       if (x == true)   {  alert("I have pressed OK ...!!!");   }   else   { alert("I have pressed the Cancel Button ...!!!");   }      </script>  </body> </html>