This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
1. given a string calculate the number of repeated words and return a value. | |
var fruits = "orange banana orange mango" | |
function sting(str){ | |
var n = str.match(/orange/g); | |
console.log(n.length) | |
} | |
sting(fruits) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const mongoose = require('mongoose'); | |
const EventTypes = ['Raw', 'Enriched', 'Joined'] | |
const EventFormats = ["JSON", "DELIMITED", "FIXEDWIDTH", "REGEX"] | |
const ColumnDataTypes = ["int", "float", "Double", "string"] | |
const ColumnTypes = ["Description", "ID", "Time"] | |
var notEmpty = function(columns){ | |
if(columns.length === 0){console.log("not empty");return false} | |
else {console.log("true not empty");return true}; |