From d2a7819a8357d9f8b71ff26c7990528158bdb16d Mon Sep 17 00:00:00 2001 From: CorneliusKibetDC Date: Thu, 26 Sep 2024 10:58:01 +0300 Subject: [PATCH] complete lab --- .results.json | 102 ++++++++++++++++++++++++++++++++++++++++++++++++++ index.js | 6 ++- 2 files changed, 107 insertions(+), 1 deletion(-) create mode 100644 .results.json diff --git a/.results.json b/.results.json new file mode 100644 index 000000000..c3eaf1790 --- /dev/null +++ b/.results.json @@ -0,0 +1,102 @@ +{ + "stats": { + "suites": 4, + "tests": 6, + "passes": 6, + "pending": 0, + "failures": 0, + "start": "2024-09-26T07:56:14.720Z", + "end": "2024-09-26T07:56:15.056Z", + "duration": 336 + }, + "tests": [ + { + "title": "is set as Scuber", + "fullTitle": "index.js companyName is set as Scuber", + "duration": 1, + "currentRetry": 0, + "err": {} + }, + { + "title": "is defined as a const", + "fullTitle": "index.js companyName is defined as a const", + "duration": 0, + "currentRetry": 0, + "err": {} + }, + { + "title": "is declared as equal to Chelsea", + "fullTitle": "index.js mostProfitableNeighborhood is declared as equal to Chelsea", + "duration": 0, + "currentRetry": 0, + "err": {} + }, + { + "title": "is defined using let", + "fullTitle": "index.js mostProfitableNeighborhood is defined using let", + "duration": 0, + "currentRetry": 0, + "err": {} + }, + { + "title": "is declared as equal to Susan Smith", + "fullTitle": "index.js companyCeo is declared as equal to Susan Smith", + "duration": 0, + "currentRetry": 0, + "err": {} + }, + { + "title": "is defined using let", + "fullTitle": "index.js companyCeo is defined using let", + "duration": 0, + "currentRetry": 0, + "err": {} + } + ], + "pending": [], + "failures": [], + "passes": [ + { + "title": "is set as Scuber", + "fullTitle": "index.js companyName is set as Scuber", + "duration": 1, + "currentRetry": 0, + "err": {} + }, + { + "title": "is defined as a const", + "fullTitle": "index.js companyName is defined as a const", + "duration": 0, + "currentRetry": 0, + "err": {} + }, + { + "title": "is declared as equal to Chelsea", + "fullTitle": "index.js mostProfitableNeighborhood is declared as equal to Chelsea", + "duration": 0, + "currentRetry": 0, + "err": {} + }, + { + "title": "is defined using let", + "fullTitle": "index.js mostProfitableNeighborhood is defined using let", + "duration": 0, + "currentRetry": 0, + "err": {} + }, + { + "title": "is declared as equal to Susan Smith", + "fullTitle": "index.js companyCeo is declared as equal to Susan Smith", + "duration": 0, + "currentRetry": 0, + "err": {} + }, + { + "title": "is defined using let", + "fullTitle": "index.js companyCeo is defined using let", + "duration": 0, + "currentRetry": 0, + "err": {} + } + ] +} \ No newline at end of file diff --git a/index.js b/index.js index 0db694916..fdd413c8d 100644 --- a/index.js +++ b/index.js @@ -1 +1,5 @@ -// Code your solution in this file! + +const companyName='Scuber'; +let mostProfitableNeighborhood; +mostProfitableNeighborhood='Chelsea'; +let companyCeo='Susan Smith'; \ No newline at end of file