insert Collections
db.collection_name.insert([{
name : "Anmol",
roll_no : 452,
college : "SVIET",
year : 2017,
language : ["Android", "Reactjs", "MongoDB"]
| import React from "react"; | |
| import Rahul from "./Components/Rahul"; | |
| import Rose from "./Components/Rose"; | |
| function App() { | |
| return ( | |
| <div className="App"> | |
| <Rahul camp="120" /> | |
| <Rose camp="140" /> | |
| </div> |
| .AutoCompleteText { | |
| width: 50%; | |
| border: 1px solid grey; | |
| box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.1), 0 2px 4px 1px rgba(0, 0, 0, 0.18); | |
| font-size: 14px; | |
| color: rgba(0, 0, 0, 0.73); | |
| } | |
| .AutoCompleteText input { | |
| width: 100%; |
| .wrapper { | |
| height: 100vh; | |
| width: 100%; | |
| display: flex; | |
| flex-direction: column; | |
| justify-content: center; | |
| align-items: center; | |
| background-color: #258ea6; | |
| } |
| const fs = require("fs") | |
| fs.writeFileSync("notes.txt", "My Name is Anmol") | |
| fs.appendFileSync("notes.txt", " Lives in Chandigarg") |
| const add = function(a, b) { | |
| return a + b | |
| } | |
| module.exports = add |
| console.log("Anmol") |
| const name = "Anmol" | |
| module.exports = name |
| const chalk = require("chalk"); | |
| console.log(chalk.blue("Success!")) | |
| const blueMessage = chalk.yellow("Succes!") | |
| console.log(blueMessage) | |
| const boldYellow = chalk.bold.yellow("Succes!") | |
| console.log(boldYellow) | |
| const boldInverse = chalk.bold.inverse.blue("Succes!") |