Skip to content

Would JReply _.define() be useful

twitter logo github logo ・1 min read  

So I was adding this feature to JReply (It's coming anyways), but I want some early feedback, of course, it's hard to give feedback on something that doesn't exist...
but, let me run it down...

It works like this:


console.log(x) // 101

you can also do this:

(function() {

console.log(x) // [1,2,3]

So, what is it doing? It is creating a new variable in the global scope, with the name of the string, it's actually very simple!

But my question is, would something like this be useful?

twitter logo DISCUSS (4)
markdown guide

Well, with the function, it get's stored in


a failsafe for if it can't be made global


I see. I think it would be helpful to add description and goals of the tool you're building in the post..

Classic DEV Post from Sep 1 '19

Working as a freelancer

What is/was your experience working as a freelancer?

PDS OWNER CALIN (Calin Baenen) profile image
I am a 13 (as of Oct 30 of 2019) yr/o developer (I have been developing mini-projects for 4, years now, since I was 9), who makes projects in languages like: Java, HTML, Python 3, JS, CSS, and C#.