JavaScript basic syntax

Source: Internet
Author: User
Tags python list

JS Code Volume World First

Write a lot of items

Mobile Client Android iOS various gadgets

The domain of the Web page does not do the programming language

Java

==================================

As with CSS, the introduction of files cannot be opened by the browser

Alert Bullet Box

The introduction of external JS files can no longer write code

Use JS in HTML to introduce several.

JS either has or wraps.

Consol.log Output Content

Ah, I'm being exported.

Consol.log output to the console

document.write Output to Page

Alert Bullet Box output

var username= ' Lili ';

Be sure to add Var

Document.getelement here doesn't understand

Contents of the Double tag element

Data types and operators for 3java script

# # #3.1 data types

Original type number (numeric) string (String), Boolean, null, undefined (undefined)

The object type Object,arry is similar to the Python list, date, math, error set (ES6) ...

Scientific counting method

2e2=2*102

JavaScript basic syntax

Related Article

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.