Nodejs Command Parameters (nodejs basic primer)

Source: Internet
Author: User

Disclaimer: This article can be used for a certain JS basic friends reference Nodejs, this article does not explain the installation of Nodejs, if necessary, students can add QQ3382260752 to find me, exchange learning.

It is recommended to use the development software: Webstorm or Hbuilder software.

1. Open the Command Window
Enter node to enter the node environment.
2. On the command line you can enter:
var a=10;var b=20;function Add (A, b) {return A+b};add (A, b); then enter
The Add function is called to print the results in the console: 30

3. You can directly continue to call Add (50,30), then print the result 80

Nodejs Command Parameters (nodejs basic primer)

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.