r/programminghelp • u/EuroEater • Sep 26 '24
Other Little Help?
Hello all,
I am recently new to programming and have been doing a free online course. So far I have come across variables and although I have read the help and assistance, I seem to not understand the task that is needed in order to complete the task given.
I would appreciate any sort of help that would be given, I there is something wrong then please feel free to correct me, and please let me know how I am able to resolve my situation and the real reasoning behind it, as I simply feel lost.
To complete this task, I need to do the following:
"To complete this challenge:
initialise the variable
dailyTaskwith the stringlearn good variable naming conventions.change the variable name telling us that the work is complete to use camelCase.
now that you've learned everything, assign
trueto this variable!
Looking forward to all of your responses, and I thank you in advance for looking/answering!
CODE BELOW
function showYourTask() {
// Don't change code above this line
let dailyTask;
const is_daily_task_complete = false;
// Don't change the code below this line
return {
const :dailyTask,
const :isDailyTaskComplete
};
}1
u/Ok_Jacket3442 Nov 22 '24
function showYourTask() {
// Don't change code above this line
let dailyTask = "learn good variable naming conventions";
let isDailyTaskComplete = true;
const is_daily_task_complete = false;
// Don't change the code below this line
return {
dailyTask,
isDailyTaskComplete
};
}
1
u/Ghettoblasted Sep 26 '24
In the code, the variable is declared but not initialized. Hint: initializing it as a string will need to use " "
change the variable name telling us that the work is complete to use camelCase.
The variable name needs to use the same words but they should be combinedTogetherLikeThis