AlgoDaily Solution
1Locked, only available for premium members.Community Solutions
Community solutions are only available for premium users.
Access all course materials today
The rest of this tutorial's contents are only available for premium members. Please explore your options at the link below.
xxxxxxxxxx35
var assert = require('assert');function getTV(actual, guess) { let targets = 0; let vicinities = 0; // fill this in return `${targets}T${vicinities}V`;}try { assert.equal(getTV('345', '135'), '1T1V'); console.log('PASSED: ' + "getTV('345', '135') should return '1T1V'");} catch (err) { console.log(err);}try { assert.equal(getTV('01', '01'), '2T0V'); console.log('PASSED: ' + "getTV('01', '01') should return '2T0V'");} catch (err) { console.log(err);}OUTPUT
Results will appear here.