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
/*-----------------------Drill 1----------------------*/ | |
function wisePerson(wiseType, whatToSay) { | |
// your code here | |
var a = "A wise "+wiseType+" once said: \""+whatToSay+ | |
"\"."; | |
return a; | |
} | |
/* From here down, you are not expected to |
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
/*------------------------------Drill 1----------------------------*/ | |
function computeArea(width, height) { | |
// your code here | |
return width*height; | |
} | |
/* From here down, you are not expected to | |
understand.... for now :) |
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
/*-----------------------------------Drill 1-------------------------------*/ | |
function doTrafficLights() { | |
var activeLight = getActiveLight(); | |
// your code will replace this call | |
// to `console.log()` | |
if(activeLight==="red"){ | |
turnRed(); | |
} | |
else if(activeLight==="green"){ |
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
https://jsbin.com/liwaham/edit?html,js,output | |
https://jsbin.com/feforef/1/edit?html,js,output | |
https://jsbin.com/nuyowo/edit?html,js,output | |
https://jsbin.com/canudir/edit?html,js,output | |
https://jsbin.com/ciserit/edit?html,js,output | |
https://jsbin.com/kabujux/edit?html,js,output | |
https://jsbin.com/ralogev/edit?html,js,console,output | |
https://jsbin.com/penadol/edit?html,js,console,output | |
https://jsbin.com/jonojoy/edit?html,js,console,output | |
https://jsbin.com/xuniloh/edit?html,js,console,output |
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
https://jsbin.com/molimos/edit?html,js,console,output | |
https://jsbin.com/toyumed/edit?html,js,console,output | |
https://jsbin.com/telamiy/edit?html,js,console,output |
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
https://jsbin.com/lurosel/edit?html,js,console,output | |
https://jsbin.com/zorovip/edit?html,js,console,output | |
https://jsbin.com/cahoray/edit?html,js,console,output | |
https://jsbin.com/jidodef/edit?html,js,console,output |
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
https://jsbin.com/covokoj/2/edit?html,js,output | |
https://jsbin.com/taxavab/edit?html,js,console,output | |
https://jsbin.com/govafuc/edit?html,js,console,output | |
https://jsbin.com/kezicus/edit?html,js,console,output | |
https://jsbin.com/xiwidog/edit?js,console,output |
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
function getTokens(rawString) { | |
// NB: `.filter(Boolean)` removes any falsy items from an array | |
// .split : split words from to to an array,input of spliting is Regex.This Regex means ignore white space character and any other special characters like commas,semi-colon,exclamation marks,etc... | |
// .sort : sorting words in an alphabetical order. | |
return rawString.toLowerCase().split(/[ ,!.";:-]+/).filter(Boolean).sort(); | |
} | |
function mostFrequentWord(text) { | |
var words = getTokens(text); | |
console.log(words); |
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
version: '3.5' | |
services: | |
teamcity-server: | |
image: jetbrains/teamcity-server:latest | |
volumes: | |
- ./server/data:/data/teamcity_server/datadir | |
- ./server/log:/opt/teamcity/logs | |
ports: | |
- 8080:8111 |
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
<html> | |
<head> | |
<meta charset="utf-8"> | |
<meta name="viewport" content="width=device-width"> | |
<title>JS Bin</title> | |
<style id="jsbin-css"> | |
button{ | |
display:block; | |
height:60px; | |
width:100px; |
OlderNewer