FizzBuzz prints the numbers from 1 to 100.
For multiples of three, print “Fizz” instead.
For multiples of five print “Buzz”.
For multiples of both three and five print “FizzBuzz"
Jasmine test
describe("answer", function() {
it("to life the universe and everything", function() {
expect(answer()).toEqual(42);
});
});
function answer() {
return 42;
}
AJAX call, using axios
axios.get("/some/url").then(responseHandler);
function responseHandler(response) {
//prosess response data
outerVariable = response.data;
}