Published
Edited
Apr 1, 2019
3 forks
Insert cell
Insert cell
// Your team will write a module that returns an object with entry and check attributes
// The secret value must be somehow accessible from the entry
exerciseExample = (function() {
const SECRET = getRandomString(50)
const NOT_SECRET_1 = getRandomString(50)
const NOT_SECRET_2 = getRandomString(50)
const NOT_SECRET_3 = getRandomString(50)
const seqq = [ 1,2,NOT_SECRET_1,SECRET,NOT_SECRET_2,NOT_SECRET_3,3,4,5 ]
const excite = ([A,B,...C]) => {
return n => { var a = Array(n); a[B] = C; return a.reverse() }
}
return { entry:excite(seqq), check:str => str === SECRET }

})()
Insert cell
// The opposing team will find the way to get to your secret string
// and then check it with the check property.
exerciseExample.check(
exerciseExample.entry(2)[0][1]
)
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell

Purpose-built for displays of data

Observable is your go-to platform for exploring data and creating expressive data visualizations. Use reactive JavaScript notebooks for prototyping and a collaborative canvas for visual data exploration and dashboard creation.
Learn more