Please note, this is a STATIC archive of website www.tutorialspoint.com from 11 May 2019, cach3.com does not collect or store any user information, there is no "phishing" involved.
Tutorialspoint

prototype

<!DOCTYPE html>
<html>
<title>Web Page Design</title>
<head>
<script>

var entities = { };
//entities = Object.create(Object.prototype);
entities.a = 10;
entities.name = "aman";


parentp = function(){
    
   this.b = 10 ;
  document.write("hi");
    
}
parentp.prototype.z = 100;

//console.log(obj);
//console.log(obj.__proto__);
//document.write(parentp.prototype.a === obj.__proto__.a);
//document.write(parentp.prototype.a === obj.a);
//console.log(Object.getPrototypeOf(obj));
//console.log(Object.getPrototypeOf(parentp.prototype));


var childc = function()
{
    
    parentp.call(this);
    this.a = 20;
    document.write("bye");
}

childc.prototype = Object.create(parentp.prototype);
//childc.prototype.constructor = childc;

var obj = new childc();
document.write(obj.a);
document.write(obj.z);








</script>
</head>
<body>
</body>
</html>

Online Javascript Editor

<!DOCTYPE html>
<html>
<title>Web Page Design</title>
<head>
<script>
function sayHello() {
   document.write("Hello, Coding Ground!");
}
sayHello();
</script>
</head>
<body>
</body>
</html>

Online Javascript Editor

<!DOCTYPE html>
<html>
<title>Web Page Design</title>
<head>
<script>
var urls = ["https://www.practo.com/singapore/dentist", "https://www.practo.com/singapore/gynecologist", "https://www.practo.com/singapore/orthopedist", "https://www.practo.com/singapore/pediatrician", "https://www.practo.com/singapore/chiropractor", "https://www.practo.com/singapore/ophthalmologist", "https://www.practo.com/singapore/cardiologist", "https://www.practo.com/singapore/physiotherapist", "https://www.practo.com/singapore/psychiatrist", "https://www.practo.com/singapore/gastroenterologist", "https://www.practo.com/singapore/dermatologist", "https://www.practo.com/singapore/urologist", "https://www.practo.com/singapore/neurosurgeon", "https://www.practo.com/singapore/pulmonologist", "https://www.practo.com/singapore/dietitian-nutritionist", "https://www.practo.com/singapore/neurologist", "https://www.practo.com/singapore/rheumatologist", "https://www.practo.com/singapore/infertility-specialist"]


for(var l=0; l< urls.length; l++){
  console.log(urls[l])
}

</script>
</head>
<body>
</body>
</html>

Online Javascript Editor

<DOCTYPE html>
    <html>
    <head>
        <title>Calculo de raiz cuadrada</title>
          <script type="javascript">
              function calcular() {
                  document.getElementById("formulario");
                  var raiz = formulario.valor.value;
                  raiz = (Math.sqrt(raiz));
                  var resultado = raiz;
                  formulario.resultado.value = resultado;
                  
              }
              </script>
              </head>
    <body>
        <form id="formulario">
            NUMERO: <input type="text" name="valor"/>
            RESULTADO: <input type="text" name="resultado">
            <input type="button" value="CALCULAR RAIZ" onclick="calcular();"/>
            
        </form>
        
    </body>
    
    
</html>

omar

    <iframe width="560" height="315" src="https://www.youtube.com/embed/fM6JWeQFnNk" frameborder="0" allow="accelerometer; autoplay; encrypted-media; gyroscope; picture-in-picture" allowfullscreen></iframe>

<html>
    <img scr
    ="" width
    ="400"
    height
    ="300"/>
    <div>Das
    ist mein
    Bild</div 
    >
</body>
</html>
    

ionut majaru

<!DOCTYPE html>
<html>
<body>
    <img src="https://images.alphacoders.com/442/442606.jpg" width="700
    " heigth="300"/>
</body>
</html>

Fortnite breeeeeeeeee

<html>
<body>
 <img src="https://media.playstation.com/is/image/SCEA/fortnite-listing-thumb-01-ps4-us-05sep18?$facebook$" width ="550"
                                                   height="350"/>
 <img src="https://www.gameswirtschaft.de/wp-content/uploads/2018/08/Fortnite-Gamescom-2018-Epic-Games.jpg" width ="550"
                                                      height="350"/>
 <img src="https://i0.wp.com/fortniteskins.net/wp-content/uploads/2018/05/orange-justice-emote-6.png?quality=100&strip=all&ssl=1" width ="550" height="600"/>
 <img src="https://dotesports-media.nyc3.cdn.digitaloceanspaces.com/wp-content/uploads/2019/01/05093504/fortnite-1920x1080-wallpaper-llama-spotted-816x459.jpg"width ="550"
                                                      height="350"/>
 <img src="https://images.alphacoders.com/943/943271.png"  width ="550"
                                                      height="350"/>
 <img src="https://static.highsnobiety.com/wp-content/uploads/2018/05/18220430/fortnite-nintendo-switch-01-480x320.jpg"  width ="550"
                                                      height="350"/>
 <img src="https://fortniteinsider.com/wp-content/uploads/2019/02/Fortnite_blog_StatsV2_07BR_Blog_StatsV2_Header-1920x1080-deb2f07419578ac2fab2956c1b9073da5d9b4c55.jpg"  width ="550"
                                                      height="350"/> 
 <img src="https://ubistatic19-a.akamaihd.net/resource/en-us/game/assassins-creed/ac-origins/aco_hr_dlc02_wide_final_v02.1.jpg"   width ="550"  height="350"/>     
 <img src="https://www.fortnitehut.com/news-images/1/ninja-and-fortnite-s-big-new-year-s-eve-party-start-end-time-how-to-watch-and-more-EPlTAr.jpg" width ="550"
                                                      height="350"/> 
                                                      


</body>  
</html>

trendline

<html>
   <head>
      <title>Google Charts Tutorial</title>
      <script type = "text/javascript" src = "https://www.gstatic.com/charts/loader.js">
      </script>
      <script type = "text/javascript" src = "https://www.google.com/jsapi">
      </script>
      <script type = "text/javascript">
         google.charts.load('current', {packages: ['corechart']});     
      </script>
   </head>

   <body>
      <div id = "container" style = "width: 550px; height: 400px; margin: 0 auto">
      </div>
      <script language = "JavaScript">
         function drawChart() {
            // Define the chart to be drawn.
            var data = new google.visualization.DataTable();
            data.addColumn('date', 'Date');
      data.addColumn('number', 'Population');
            data.addRows([
               [ new Date(2000, 1, 3),      38.32],
               [ new Date(2000, 1, 25),      10],
               [ new Date(2000, 3, 10),     523.41],
               [ new Date(2000, 3, 15),      70.74],
               [ new Date(2000, 6, 8),      841.59],
               [ new Date(2000, 6, 13),    108.64],
               [ new Date(2000, 9, 11),      187.93],
               [ new Date(2000, 12, 10),    297.38]
            ]);
               
            // Set chart options
            var options = {
               'title':'Age vs Weight',
               'width':550,
               'height':400,
               'legend': 'none',
               trendlines: { 0: 
                  {
                     type: 'polynomial',
                     degree: 5,
                     visibleInLegend: true,
                  }
               },	// Draw a trendline for data series 0.
               vAxis: { gridlines: { count: 5 } }
            };

            // Instantiate and draw the chart.
            var chart = new google.visualization.ScatterChart(document.getElementById('container'));
            chart.draw(data, options);
         }
         google.charts.setOnLoadCallback(drawChart);
      </script>
   </body>
</html>

Online Javascript Editor

<!DOCTYPE html>
<html>
<title>Web Page Design</title>
<head>
<script>

function getUser () {
    
     return new Promise(function(res, rej){
        setTimeout(function(){
            res({name: "divyan", id: 2});
        }, 3000)
    });
    

}; 

function userClicked() {
    
    document.write("you clicked ");
    

}


async function printData() {
    
var returnedUser = await getUser();
document.write("**Async**" + returnedUser.name );
document.write(returnedUser.id);
};

printData();
userClicked();

    



// function getUser () {
    
//      return new Promise(function(res, rej){
//         setTimeout(function(){
//             res({name: "divyan", id: 2});
//         }, 3000)
//     });
    

// }; 

function print() {
    
    getUser().then(function(msg){
    document.write("***promise*** "+msg.name );
    document.write(msg.id);
    
});

}
 print();  
 
 
 
 class a {
   abc(am , an){
     document.write("aman")
    }
   abc(am){
     document.write("kumar")
    }
     
 }
 
 
 
 var b = new a();
 b.abc(2,3);
     




</script>
</head>
<body>
</body>
</html>

2H27 Lezann Tan RCG P2

<!DOCTYPE html>
<html>
<title>Web Page Design</title>
<head>
<script>
    
    var urname = prompt("Enter your name: ");
    var urclass = prompt("Enter your class: ");
    var urindex = prompt ("Enter your index number: ");
    
    var urengmrk = prompt("Enter your English marks: ");
    var urmtmrk = prompt("Enter your Mother Tongue marks: ");
    var urscimrk = prompt("Enter your Science marks: ");
    var urmathmrk = prompt("Enter your Mathematics marks: ");
    
    document.write("=== Report Card === <br>");
    document.write("Name: " + urname + "<br>");
    document.write("Class: " + urclass + "<br>");
    document.write("Index No.: " + urindex + "<br><br>");

    document.write("=== Grades === <br>");
    document.write("Language Arts: " + urengmrk + "/100" + " (A) <br>");
    document.write("Mathematics: " + urmtmrk + "/100" + " (B) <br>");
    document.write("Chinese: " + urscimrk + "/100" + " (C) <br>");
    document.write("Science: " + urmathmrk + "/100" + " (D) <br>");

</script>
</head>
<body>
</body>
</html>

Advertisements
Loading...

We use cookies to provide and improve our services. By using our site, you consent to our Cookies Policy.