View Reverse a string.js
function reverse(string) {
return string.split('').reverse().join();
}
reverse('testing');
View Dijkstra.js
const graph = {
start: { A: 5, B: 2 },
A: { C: 4, D: 2 },
B: { A: 8, D: 7 },
C: { D: 6, finish: 3 },
D: { finish: 1 },
finish: {},
};
console.log(graph);
View Dijkstra.js
const graph = {
start: {A:5, B:2},
A: {C:4, D:2},
B: {A:8, D:7},
C: {D:6, finish:3},
D: {finish:1},
finish: {}
}
console.log(graph);
View FizzBuzz.js
console.log(7%3);
function fizzBuzz(num) {
for (var i = 1; i <= num; i++) {
if (i % 15 === 0) console.log("FizzBuzz");
else if (i % 5 === 0) console.log("fizz");
else if (i % 3 === 0) console.log("Buzz");
else console.log(i);
}
}
View bootstrap-tab-panel-example.markdown
View index.html
<div class="marquee">
<p>Test</p>
</div>
View index.html
<section class="gallery-container"></section>
View castles-responsive-parallax-landscape.markdown

Castles, responsive parallax landscape

A responsive landscape (some elements are added / removed depending on the screen size) made with Pixi.js for the epic.net website menu.

A Pen by theWhiteFox on CodePen.

License.

View cosmos.markdown