ES6: Use Arrow Functions to Write Concise Anonymous FunctionsPassed

Tell us what’s happening:
So in a earlier lesson it was stated that titles for const variables should be in all CAPS and use _ for spaces and when that is applied here I am given an error. Any thoughts?

Your code so far


const MAGIC = () => {
"use strict";
return new Date();
};

Your browser information:

User Agent is: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/78.0.3904.108 Safari/537.36.

Challenge: Use Arrow Functions to Write Concise Anonymous Functions

Link to the challenge:
https://www.freecodecamp.org/learn/javascript-algorithms-and-data-structures/es6/use-arrow-functions-to-write-concise-anonymous-functions

the tests expect magic function, which is different from MAGIC.

The convention of writing the variable in all caps is mostly used for things that don’t really change, like numbers and strings. But it’s really just a convention, so if you are asked to write a variable name in usual camel case you should do that

This is not true. For now, just ignore that rule, so:

const magic = () => ...

This convention nowadays mostly applies for GLOBAL_VARIABLES (which are not always constants btw), like environmental variables (including constants like Number.PI, Number.MAX_SAFE_INTEGER etc.) and GLOBAL_MESSAGES, like error.FATAL_ERROR etc. (incl. Redux actions that are basically a form of global inter-component communication)

Everyone feel free to comment on my suggestion about this very thing!