What kind of project can I create to learn JavaScript?

I started learning JavaScript a while ago. This is a fairly simple programming language, given that I studied Java at the university, that I know php well and that I have already played with python and ruby. The problem is that in order to learn the programming language correctly, I usually create a project. In javascript, I just don’t know which project I could create, that is, a project that is not a website or linked to a web browser. Can I create javascript shell scripts? Where is javascript commonly used next to web browsers?

So can anyone give me some ideas?

+6
javascript
source share
5 answers

Can I create javascript shell scripts?

You put!

  • On Windows, you can do this using cscript.exe (you can even configure the file extension - I use jx - which starts automatically when you simply double-click the file name or use it as a command in the shell: just associate this file extension with the command "c:\WINDOWS\system32\cscript.exe" /e:JavaScript /nologo "%1" %* ). This (and I carefully measured it) is about 80 million times better than fighting the Windows language pack. About. (And if you don't want to use JScript - Microsoft's version of JavaScript - you even have options, see below.)
  • In * nix, the shell script can be configured to run in any installed interpreter (what the line #!... at the top says to the shell). I expect you to find a few if you search.
  • On a Mac, you probably have JavaScriptCore installed in /System/Library/Frameworks/JavaScriptCore.framework/Versions/A/Resources/jsc
  • And for all of the above, if you want, you can install Rhino and Java and get platform independence and access to a huge set of library functionality. Rhino has a built-in shell, or you can say that it executes a specific JavaScript file. It interacts with Java, so if you do, you have easy access to all Java features.

Where is javascript commonly used next to web browsers?

I use it for shell scripts on Windows. I also use it as a server language, for example, on the server side of a web application. It is also used in other environments where an easy and powerful scripting language is useful, for example, in the MongoDB shell environment (you can use it to query MongoDB data) and stored procedures.

All said, written on the basis of the browser, is a rich interactive way to learn the language.

+5
source share

Windows Sidebar Gadgets, Apple Widgets, and Google Desktop Gadgets are built using HTML / JS / CSS.

I studied Javascript by creating some small Windows sidebar gadgets.

Beginning of work

Sidebar Link

+4
source share

You can use javascript to create HTA (HTML applications) that can be run outside the sandbox of a web browser.
Entering MSDN in HTA Applications
Javascript HTML Application Tutorial

+2
source share

You can write a non-blocking TCP server. Node.js supports this.

+1
source share

Common javascript uses outside of browsers are WSH scripts and HTA applications in Windows and Dashboard widgets on Macs.

0
source share

All Articles