<script>// Create a base classvarAnimal= kendo.Class.extend({// The `init` method will be called when a new instance is createdinit:function(legs){this.legs= legs;}});// Inherit from that classvarBird=Animal.extend({init:function(){// Use the `fn` field to call the `init` method of the base class (Animal)Animal.fn.init.call(this,2);}});var birdie =newBird();/* The result can be observed in the DevTools(F12) console of the browser. */console.log(birdie.legs);// outputs 2</script>