Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

modif JS usher_kadio #83

Open
wants to merge 11 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 15 additions & 0 deletions .vscode/launch.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
{
// Utilisez IntelliSense pour en savoir plus sur les attributs possibles.
// Pointez pour afficher la description des attributs existants.
// Pour plus d'informations, visitez : https://go.microsoft.com/fwlink/?linkid=830387
"version": "0.2.0",
"configurations": [
{
"type": "chrome",
"request": "launch",
"name": "Launch Chrome against localhost",
"url": "http://localhost:8080",
"webRoot": "${workspaceFolder}"
}
]
}
24 changes: 19 additions & 5 deletions fizzbuzz.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,26 @@
// Make sure to look at test.script.js--that should give you some hints about what is
// expected here.

'use strict';
"use strict";

var fizzbuzz = function(x) {


if (x % 3 === 0 && x % 5 === 0) {
return "fizzbuzz";

} else if (x % 3 === 0) {
return "fizz";

} else if (x % 5 === 0) { //
return "buzz";


} else {
return x;
}

var fizzbuzz = function (x) {
//
// YOUR CODE GOES HERE
//
};
fizzbuzz(2);

module.exports = { fizzbuzz: fizzbuzz };