CopyPastor

Detecting plagiarism made easy.

Score: 1; Reported for: String similarity Open both answers

Possible Plagiarism

Plagiarized on 2019-08-28
by Bhavik Kalariya

Original Post

Original - Posted on 2013-12-24
by Rana Deep



            
Present in both answers; Present only in the new answer; Present only in the old answer;

In apps.js
var mongo = require('mongodb'); var monk = require('monk'); var db = monk('localhost:27017/ta'); module.exports = db;

In /lib/mylib.js
var db = require('../apps.js')
Though i would reccommend making a separate file called db.js and in that file export the connection ,that is more cleaner.
In apps.js
var mongo = require('mongodb'); var monk = require('monk'); var db = monk('localhost:27017/ta'); module.exports = db;

In /lib/mylib.js
var db = require('../apps.js')
Though i would reccommend making a separate file called db.js and in that file export the connection ,that is more cleaner.

        
Present in both answers; Present only in the new answer; Present only in the old answer;