Javascript Code Samples



Filters


Find Documents in Mongo db using Node JS
kishore_kumar | 6 years, 2 months
const mongodb = require("mongodb")
const mongo_client = mongodb.MongoClient

javascript node js mongodb
How to serve static pages using expressjs
harika | 5 years, 9 months
//app.js
const path = require("path");
const express = require("express")
the app.js and index.html suppose to be in the same directory. try to run nodemon app.js, you can s
nodejs javascript path
Document Referencing in MongoDB using mongoose
harika | 5 years, 11 months
// Try to look at the blog link for document references in MongoDB
// https://koderplace.com/blog/p
Assuming you have prior knowledge of routing, and database connections. If Not Check the code @http
javascript mongodb
how to get unique elements from a list without using Set function in javascript
harika | 6 years, 3 months
indices = [1, 2, 1, 4, 1];
let uniqueSet = indices.filter(function (x, i, a) {
    return a.indexO
filter es6 javascript
Initiate two renderer process in electron app / Open multiple windows in electron app
harika | 6 years, 4 months
//###main.js###
function createWindow() {
  win = new BrowserWindow({
Try to work with the above createwindow function in your repository. At the same time create one mo
javascript electron js
Creating http server in node js
Reshma | 5 years, 9 months
var x=require('http');
x.createServer(function(req,res){
    res.writehead(100,{'content-type':'pl
http server javascript
Prev