Is it possible to create an application entirely with Javascript?

Asked

Viewed 420 times

-1

I am new in the area of development (by the way, I’m not in the area yet). I would like to know if it is possible to integrate back and front-end entirely by Javascript pure. Because I believe that if I can guarantee myself in pure Javascript, I can learn any framework Javascript with ease and security.

You can build a Javascript-only application to get my first portfolio job?

  • 3

    Yes, it is possible. Node.js is for this, but there are also other javascript implementations that can be used, I suggest you ask a more specific question in this case. As for the rest of your question, I think it is not far from here: https://pt.meta.stackoverflow.com/a/5487/132

  • @Victorstafusa if the reason to close is this example linked, then I definitely disagree with the closing. But the question really isn’t very good.

  • If you’re thinking about Javascript only as language, yes it is possible, because as it was mentioned by @Victorstafusa, Node.js uses language Javascript and runs on the server, but quite different with regard to functionality (the client and server side objects are completely different, only the language is the same)

  • 1

    You may have heard this saying, but here it goes: "when all I have in my hand is a hammer, anything seems to be a nail". Why limit yourself to a single tool, if there is a varied range, for each type of problem?

  • Did the answer solve your question? Do you think you can accept it? See [tour] if you don’t know how you do it. This would help a lot to indicate that the solution was useful for you. You can also vote on any question or answer you find useful on the entire site (when you have 15 points you will have as soon as you accept the answer).

3 answers

6

Yes, it is possible since there is Node.js (Deno also) to rotate in the backend. Of course there are some differences in the API of browser and the server, and that’s more important than the language itself.

If you like and get along very well with JS can be a good one, has facilities in using only one language. But often the solution may not be the most appropriate.

Particularly I’m going in the opposite direction, as there are strong criticisms of Javascript. One of them is the proliferation of framewoks and tools.

I prefer to use C# in backend and now I’m going to use it on frontend through the Blazor.

Several languages are doing the same through Webassembly. For me the JS has no future, but for many people have.

My vision escapes a little from the current tide. And many people quite strong in the area think the same. What matters is to know the foundation. This thing of choosing a language and learning to program like this, partly solves the problem, there are a lot of people who get along that way, but it’s hard to become an excellent professional like that. I know a lot of people who even get to know each other, have good jobs, because they are able to communicate well and can sell well with just that. But it’s different to master programming, to be able to solve any problem, to be creative.

It is practically Impossible to Teach good Programming to Students that have had a prior Exposure to BASIC: as potential programmers they are mentally mutilated Beyond Hope of Regeneration

-- Edsger W. Dijkstra

I would say that this is true today for JS (not only, but the list is large). Although almost everyone I know who has become professional in the field and started with BASIC has achieved some degree of excellence. In fact JS creates addictions and lack of understanding much worse than BASIC did in poor minds.

Note that you understand to be entering the area and already have a portfolio, before you know what to do. Yeah, it looks like that’s it now, then the person will complain that the area pays poorly. That’s why in the past no one hired older people, today they prefer these, are the people who learned.

I hope I have been able to give a good direction, it was my intention, despite the criticism of the message, even because today it is also lacking for people to make more balanced and reasoned decisions.

1

Alexander. For the development of applications using purely JS there are numerous frameworks for this.

For back-end there is the NODEJS

Front I advise reactjs (This framework has been growing a lot in the market)

for mobile tbm there is the React-Native which is very similar to JS.

And if you want to run a desktop application in fact, there is electronJS that does the same (using webview)

0

Nowadays it is possible, Javascript although it is a front-end language, it allows to build backend applications, there are some frameworks that make use of it as backend as Node.js. It is also known as Ecmascript, and has evolved a lot in recent years, from version 6 to version 7 and so on...

Microsoft created Javascript in 96 and Netscape improved, normalizing the language, adopting Ecmascript metrics, was born to render HTML content, basically the rendering structure of a page is based on Javascript through the manipulation of GIFT.

The browsers are HTML renderers, everything that is done today in relation to HTML, go through this process of construction and/or reconstruction, the events, the elements, everything is that will be presented as HTML element structure, is through the DOM, among many other things that are read, and interpreted, before magic takes place, synchronous or asynchronous rules are defined, depending on the hierarchy established in their events and functions.

Each browser has a rendering engine, most today recognize javascript and allow it to be used, if the user does not disable it manually, from there you have access to the native functions, and can see this through the console of your browser, just write window and enter and you’ll have the console.log of the first layer of your native functions.

Inside a javascript code, you can put the console.log(object) native method to see on your console printing outputs of the worked elements, which can be diverse, such as objects, strings, numbers, booleans etc.

But to get the most out of it, if you don’t want to be familiar with Node.js or find it too complicated, you can opt for using any other backend language (server side) that supports building model data structures JSON, which is basically a data structure similar to XML, whose data is consumed by javascript methods. Although you don’t need to use backend structures, you can only consume a file of the type: /path/arquivo.json, as if accessing a database, only it is only a data presentation file.

Still for APP applications like mobile, you have React-Native, which uses Javascript to chat with native architectures in a hybrid way (both Android and ios). You may want to find out about Flutter that today is the newest and is competing with the React-Native, was developed by Google and uses its own Dart language.

For desktop, you can use very similar javascript structure models, using only React.

Other examples of Javascript-facing frameworks / libs:

  • Angular 2, 4, 5, 6, 7, 8 +
  • Angularjs
  • React
  • jQuery (library)
  • 1

    I don’t understand why I would deny that answer. Although I belong to a school of thought that sees Javascript as a multipurpose language, there is a school of thought that sees Javascript as a domain-specific language and their main argument is that Nodejs is an implementation of Google V8 that is engine of many browsers.

Browser other questions tagged

You are not signed in. Login or sign up in order to post.