This sheet goes along with this SSH YouTube tutorial
$ ssh [email protected]
$ mkdir test
$ cd test
GENERATORS: | |
Text Content Generator - http://www.lipsum.com | |
Favicon Generator - http://tools.dynamicdrive.com/favicon | |
Data Generator - https://mockaroo.com/ | |
Mobile Mockup Generator - https://mockuphone.com | |
Logo Generator - https://www.logaster.com | |
UUID Generator - https://www.uuidgenerator.net/ | |
Hash Generator - https://passwordsgenerator.net/sha256-hash-generator/ | |
IMAGE RESOURCES: |
<div id="wrapper"> | |
<div id="left"> | |
<div id="signin"> | |
<div class="logo"> | |
<img src="https://image.ibb.co/hW1YHq/login-logo.png" alt="Sluralpright" /> | |
</div> | |
<form> | |
<div> | |
<label>Email or username</label> | |
<input type="text" class="text-input" /> |
$ ssh [email protected]
$ mkdir test
$ cd test
module.exports = (answers, studentAns) => { | |
if (answers.length !== studentAns.length) { | |
return 'Arrays must be of the same length'; | |
} | |
let sum = 0; | |
for (let i = 0; i < answers.length; i++) { | |
if (answers[i] === studentAns[i]) { | |
sum += 4; | |
} else if (studentAns[i] !== ' ') { | |
sum -= 1; |
const { assert } = require('chai'); | |
const computeResult = require('../challange/computeResult'); | |
describe('return sum', () => { | |
it('Must be a function', () => { | |
assert.isFunction(computeResult, 'must be a function'); | |
}); | |
it('Return the result', () => { | |
const answers = [ 'a', 'b', 'a', 'c' ]; | |
const studentAns = [ 'a', 'c', 'd', 'c' ]; |