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 input = [ | |
{ symbol: "ZCS", secondary: "PCE", amount: 10 }, | |
{ symbol: "ABC", secondary: "BCE", amount: 20 }, | |
{ symbol: "XCF", secondary: "ZBD", amount: 20 }, | |
{ symbol: "VBN", amount: 30 }, | |
{ symbol: "ACM", amount: 20 }, | |
]; | |
function mapOnly(data) { | |
const 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
<html> | |
<head> | |
<meta name="description" content="JS Developer Code Challenge" /><html> | |
<head> | |
<script src="https://cdn.rawgit.com/lodash/lodash/4.5.1/dist/lodash.min.js"></script> | |
<script src="https://cdn.rawgit.com/lodash/lodash/4.5.1/dist/lodash.fp.min.js"></script> | |
<title>Coding Challenge</title> | |
</head> | |
<body> | |
<h1>Terms of the Exercise</h1> |
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 createDateString(day, month, year) { | |
return year + '-' + month + '-' + day; | |
} | |
function validateDate(dateStr) { | |
var ourDate = new Date(dateStr); | |
if(/(Invalid)/.test(ourDate)) { | |
return false; | |
} | |
return true; |
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
<style id="jsbin-css"> | |
.slider li{ display: none; } | |
.active-slide { display: inline!important; } | |
</style> | |
<script src="http://code.jquery.com/jquery-1.9.1.min.js"></script> | |
<!-- slider 1 --> | |
<div class="slider-item-one"> | |
<ul class="slider"> | |
<li class="active-slide">content 1</li> |