5 Program to demonstrate Event Emitter in NodeJS

Program: var events = require('events'); var emitter = new events.EventEmitter(); emitter.on('publishVideo', functi...
Read More

4 Program to use Multiple Modules in NodeJS

Program: math.js: var calculate_square = function(number){     console.log(number*number); }; var calculate_cube = function(n){  ...
Read More

3 Program to use Modules in NodeJS

Program: square.js: var calculate_square = function(number){     console.log(number*number); } module.exports = calculate_square; ...
Read More

2 Program to demonstrate Function Expression in NodeJS

Program: var displayMessage = function () {     console.log(" This is a DisplayMessage Function"); } var calculateSquare =...
Read More

1 Program to Print Hello World in NodeJS

Program: setTimeout(function(){     console.log("Hello World!"); },5000) Output:
Read More

16 Program to demonstrate Registering Components and Props in VueJS

Program: App.vue: <template>   <div id="app">     <heading></heading>     <h1> Hello There! ...
Read More

15 Program to demonstrate Styling Components in Vue CLI

Program: App.vue: <template>   <div id="app">     <h1>  Hello There! </h1>     <students><...
Read More

14 Program to demonstrate Nesting Components using VUE CLI

Steps: 1) $npm install -g vue-cli 2) $vue init webpack-simple my-project 3) $cd my-project 4) $npm install 5) $npm run dev ...
Read More

13 Program to demonstrate Referencing in VueJS

Program: index.html: <!DOCTYPE html> <html> <body>     <div id="ad">         <input type=&qu...
Read More

12 Program to demonstrate Components in VueJS

Program: index.html: <!DOCTYPE html> <html> <body>     <div id="ad">         <mycomponent>...
Read More

11 Program to demonstrate Multiple Instances in VueJS

Program: index.html: <!DOCTYPE html> <html> <body> <div id="ad"> {{ value }} <...
Read More

10 Program to demonstrate For Loop in VueJS

Program: index.html: <!DOCTYPE html> <html> <body>     <div id="ad">         <h1> <b&g...
Read More