If you are not sure if the website you would like to visit is secure, you can verify it here. Enter the website address of the page and see parts of its content and the thumbnail images on this site. None (if any) dangerous scripts on the referenced page will be executed. Additionally, if the selected site contains subpages, you can verify it (review) in batches containing 5 pages.
favicon.ico: javascript-tutorial.com/zh/559/the-basics/basic-javascript-syntax - Basic JavaScript syntax - The .

site address: javascript-tutorial.com/zh/559/the-basics/basic-javascript-syntax/ redirected to: javascript-tutorial.com/zh/559/the-basics/basic-javascript-syntax

site title: Basic JavaScript syntax - The complete JavaScript Tutorial

Our opinion (on Thursday 19 November 2026 6:49:55 UTC):

GREEN status (no comments) - no comments
After content analysis of this website we propose the following hashtags:



Meta tags:

Headings (most frequently used words):

javascript, the, for, web, objects, basic, syntax, metadata, 语句, 代码块, 代码注释, 总结, chapter, article, toc, about, getting, started, basics, control, structures, data, types, built, in, operators, functions, classes, error, handling, regular, expressions, general, bom, dom,

Text of the page (most frequently used words):
the (30), javascript (22), this (13), you (10), introduction (10), alert (9), for (9), #article (8), and (8), hello (6), var (6), please (6), operators (6), not (5), world (5), will (5), happen (5), metadata (5), with (5), translation (5), operator (5), translated (4), chinese (4), are (4), basic (4), syntax (4), methods (4), functions (4), tutorial (3), into (3), language (3), help (3), variables (3), line (3), comment (3), basics (3), try (3), have (3), then (3), web (3), object (3), regular (3), expressions (3), catching (3), following (2), your (2), translate (2), click (2), lines (2), comments (2), write (2), want (2), 默认情况下 (2), 稍后将详细介绍 (2), let (2), false (2), true (2), multiple (2), original (2), already (2), item (2), vote (2), chapter (2), that (2), button (2), about (2), started (2), asp (2), net (2), dom (2), window (2), bom (2), search (2), error (2), types (2), conditional (2), errors (2), catch (2), fields (2), inheritance (2), getters (2), setters (2), prototypes (2), objects (2), values (2), function (2), parameters (2), array (2), loops (2), statement (2), truthy (2), falsy (2), toc (2), localization, contact, com, 2007, 2026, has, been, fully, languages, preferred, list, here, vietnamese, spanish, italian, french, czech, next, previous, 该篇是对javascript语法的快速介绍, 希望能帮助你理解本教程其余部分的示例, 还有更多的语法需要学习, 但我们将在介绍该语言各个方面的过程中逐步深入这些部分, 根据自己的喜好, 在这两种注释方法选一种即可, all, these, can, whatever, formatted, however, 如果您有很多多行注释, 不想在每行前面加上两个正斜杠, 则可以使用多行注释语法, 它以正斜杠开头, 紧接着是星号, 所有内容都被视为注释, 直到您使用相同的符号退出注释模式, 以下是示例, one, 也可以连续多行注释, rest, 也可以在语句的同一行上执行此操作, 只要记住在两个正斜杠之后, 其余部分将被解释器忽略, 代码中除空格之外的所有内容都会被解释, 因此必须是有效的, 有时您需要为自己或团队留下注释, 中使用两个正斜杠, 注释部分, 解释器会忽略正斜杠其余部分, 代码注释, 代码块在, 中被广泛使用, 例如用于控制结构, 如上面示例中, 也用于定义函数, document, 在此示例以及在上面示例中, 我缩进了, 语句后的下一行, 第一个例子, 以及块内, 第二个例子, 这不是必需的, 但大多数程序员都会这样做, 因为它使代码更具可读性, 您可以使用键盘上的, tab, 键缩进一行, 甚至几行, 如果块内有一个块, 依此类推, 则应适当缩进, 每个块缩进一次, 如下所示, won, either, 如果您运行它, 只有第二个, 被触发, 原因是, 语句永远不会为真, 下面一行的语句不会触发, 如果您需要在, 语句中包含多行代码, 则需要创建一个块, 使用花括号来包裹, 语句影响的代码行, 当使用, 语句和循环等控制结构时, 您需要控制包含哪些代码行, 假定只有下一行是控制结构的一部分, 代码块, 虽然javascript, 不严格要求结束分号, 如果代码行比较复杂, 解释器有时无法理解您的意图, 那么您无论如何都必须添加分号, 代码指南通常建议您始终使用结尾分号, 这样您就不会在真正需要的时候忘记它, 也方便您以后切换到更严格的编程语言时无需学习新习惯, 请注意, 风格的编程语言对于结束分号的要求非常严格, 必须要求分号结束, 实际上并非如此, 它会尝试猜测您的语句是否在到达换行符时结束, 这在许多情况下都是有效的, 请看下面例子, welcome, very, long, piece, text, which, uses, 注意使用分号结束它, 这告诉解释器该语句已完成, 这意味着虽然语句通常是一行代码, 实际上不必包含在一行中, 可以随意使用多行, 只要以分号结尾即可, 一行代码就是一个语句, 在这里, 我声明了一个变量, 名称为, 小写字母, 但在下一行中, 我尝试通过引用a, 大写字母, 来使用它, 这将因为我没有使用相同的字母而导致失败, 这意味着小写字母, 和大写字母, 是不同的, 让我们看一个例子, javascript编程语言是区分大小写的, 让我们从一个非常基本的规则开始, 如果你对编程完全陌生, 这可能会让你感到困惑, 如果你以前有过像c, java, 或php这样的流行编程语言的经验, 你可能会认识javascript的语法, 原因在于, 所有这些语言要么源自c编程语言, 要么深受c编程语言的启发, 如果您以前没有这些语言的经验, 甚至根本没有编程经验, 请允许我向您快速介绍javascript的语法, looking, english, more, info, logged, page, reloading, login, satisfied, specific, may, down, when, reaches, certain, negative, threshold, removed, only, submit, altered, good, reasons, translating, they, see, think, looks, wrong, consult, make, sure, use, know, fluent, just, point, any, highlighted, left, border, remember, images, should, their, titles, well, inside, get, look, current, status, yellow, untranslated, element, currently, process, being, done, wpf, php5, jquery, html5, css3, webforms, mvc, location, history, script, tag, general, replace, using, capturing, groups, match, regex, flags, options, throwing, finally, handling, static, classes, extension, property, accessors, properties, return, recursive, callback, anonymous, default, optional, chaining, nullish, coalescing, ternary, remainder, logical, modify, assign, increment, decrement, arithmetic, comparison, assignment, json, math, date, string, number, built, type, conversion, null, undefined, strings, numbers, booleans, data, while, switch, control, structures, tools, need, getting, libraries, webbrowser, what, summary, blocks, statements, table, contents, complete,


Text of the page (random words):
basic javascript syntax the complete javascript tutorial javascript tutorial toc table of contents chapter article toc basic javascript syntax statements blocks comments summary variables truthy falsy about javascript what is javascript javascript and the webbrowser javascript libraries getting started the tools you need hello world the basics basic javascript syntax variables truthy falsy control structures the if statement the switch statement loops for and while loops for of and for in data types introduction booleans numbers strings null undefined type conversion built in objects introduction number string array the basics array methods date math json operators introduction the assignment operator comparison operators arithmetic operators increment decrement operators modify and assign operators logical operators remainder operator conditional ternary operator nullish coalescing operator optional chaining operator functions introduction function parameters function parameters with default values anonymous functions callback functions recursive functions multiple return values objects introduction properties methods property accessors getters setters prototypes prototypes inheritance extension classes introduction fields methods getters setters inheritance static fields methods error handling introduction catching errors try catch catching throwing errors try catch finally error types conditional catching regular expressions introduction regex flags options search match with regular expressions using capturing groups search replace with regular expressions javascript for web general introduction window dom bom the script tag javascript for web the bom the window object the history object the location object javascript for web the dom introduction javascript asp net mvc asp net webforms c css3 html5 jquery php5 wpf this article is currently in the process of being translated into chinese 95 done if you are fluent in chinese then please help us just point to any untranslated element highlighted with a yellow left border remember that images should have their titles translated as well inside the article and click the translation button to get started or have a look at the current translation status for the chinese language if you see a translation that you think looks wrong then please consult the original article to make sure and then use the vote button to let us know about it metadata please help us by translating the following metadata for the article chapter if they are not already translated if you are not satisfied with the translation of a specific metadata item you may vote it down when it reaches a certain negative threshold it will be removed please only submit an altered translation of a metadata item if you have good reasons to do so please login to translate metadata already logged in please try reloading the page more info looking for the original article in english the basics basic javascript syntax 如果你以前有过像c java c 或php这样的流行编程语言的经验 你可能会认识javascript的语法 原因在于 所有这些语言要么源自c编程语言 要么深受c编程语言的启发 但是 如果您以前没有这些语言的经验 甚至根本没有编程经验 请允许我向您快速介绍javascript的语法 让我们从一个非常基本的规则开始 如果你对编程完全陌生 这可能会让你感到困惑 javascript编程语言是区分大小写的 这意味着小写字母 a 和大写字母 a 是不同的 让我们看一个例子 var a 42 alert a 在这里 我声明了一个变量 稍后将详细介绍 名称为 a 小写字母 但在下一行中 我尝试通过引用a 大写字母 来使用它 这将因为我没有使用相同的字母而导致失败 语句 一行代码就是一个语句 alert hello world 注意使用分号结束它 这告诉解释器该语句已完成 这意味着虽然语句通常是一行代码 实际上不必包含在一行中 可以随意使用多行 只要以分号结尾即可 var s hello world and welcome to this very long piece of text which uses multiple lines 请注意 一些 c 风格的编程语言对于结束分号的要求非常严格 必须要求分号结束 但 javascript 实际上并非如此 它会尝试猜测您的语句是否在到达换行符时结束 这在许多情况下都是有效的 请看下面例子 var s hello world var n 42 虽然javascript 不严格要求结束分号 但是 如果代码行比较复杂 解释器有时无法理解您的意图 那么您无论如何都必须添加分号 因此 javascript 代码指南通常建议您始终使用结尾分号 这样您就不会在真正需要的时候忘记它 也方便您以后切换到更严格的编程语言时无需学习新习惯 代码块 当使用 if 语句和循环等控制结构时 您需要控制包含哪些代码行 默认情况下 javascript 假定只有下一行是控制结构的一部分 示例 var b false if b true alert this will not happen alert this will happen 如果您运行它 只有第二个 alert 被触发 原因是 if 语句永远不会为真 if 下面一行的语句不会触发 但是 如果您需要在 if 语句中包含多行代码 则需要创建一个块 使用花括号来包裹 if 语句影响的代码行 var b false if b true alert this will not happen alert this won t happen either alert this will happen 注意 在此示例以及在上面示例中 我缩进了 if 语句后的下一行 第一个例子 以及块内 第二个例子 这不是必需的 但大多数程序员都会这样做 因为它使代码更具可读性 您可以使用键盘上的 tab 键缩进一行 甚至几行 如果块内有一个块 依此类推 则应适当缩进 每个块缩进一次 如下所示 let a 1 b 2 c 3 if a 1 if b 2 if c 3 document write ok 代码块在 javascript 中被广泛使用 例如用于控制结构 如上面示例中 也用于定义函数 稍后将详细介绍 代码注释 默认情况下 javascript 代码中除空格之外的所有内容都会被解释 因此必须是有效的 javascript 代码 但是 有时您需要为自己或团队留下注释 javascript 中使用两个正斜杠 注释部分 解释器会忽略正斜杠其余部分 this line is a comment 也可以在语句的同一行上执行此操作 只要记住在两个正斜杠之后 其余部分将被解释器忽略 alert hello the rest of this line is a comment 也可以连续多行注释 this line is a comment so is this one 如果您有很多多行注释 不想在每行前面加上两个正斜杠 则可以使用多行注释语法 它以正斜杠开头 紧接着是星号 此后 所有内容都被视为注释 直到您使用相同的符号退出注释模式 以下是示例 all of these lines are comments and you can write whatever you want formatted however you want it 根据自己的喜好 在这两种注释方法选一种即可 总结 该篇是对javascript语法的快速介绍 希望能帮助你理解本教程其余部分的示例 当然 还有更多的语法需要学习 但我们将在介绍该语言各个方面的过程中逐步深入这些部分 hello world previous variables next this article has been fully translated into the following languages chinese czech french italian spanish vietnamese is your preferred language not on the list click here to help us translate this article into your language javascript tutorial com 2007 2026 contact us localization
Thumbnail images (randomly selected): * Images may be subject to copyright.GREEN status (no comments)

    No Images


    Verified site has: 78 subpage(s). Do you want to verify them? Verify pages:

    1-5 6-10 11-15 16-20 21-25 26-30 31-35 36-40 41-45 46-50
    51-55 56-60 61-65 66-70 71-75 76-78


    Top 50 hastags from of all verified websites.

    Supplementary Information (add-on for SEO geeks)*- See more on header.verify-www.com

    Header

    HTTP/1.1 302 Redirect
    Content-Type text/html; charset=UTF-8
    Location htt????/javascript-tutorial.com/zh/559/the-basics/basic-javascript-syntax/
    Server Microsoft-IIS/10.0
    X-Powered-By ASP.NET
    Date Thu, 19 Nov 2026 06:49:54 GMT
    Connection close
    Content-Length 197
    HTTP/2 200
    cache-control private
    content-type text/html; charset=utf-8
    server Microsoft-IIS/10.0
    set-cookie ASP.NET_SessionId=1xqmpga0eb4e2k1zelqhbr4a; path=/; HttpOnly; SameSite=Lax
    x-aspnetmvc-version 5.2
    x-aspnet-version 4.0.30319
    x-powered-by ASP.NET
    date Thu, 19 Nov 2026 06:49:54 GMT
    content-length 29886

    Meta Tags

    title="Basic JavaScript syntax - The complete JavaScript Tutorial"
    name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no"

    Load Info

    page size29886
    load time (s)0.274477
    redirect count1
    speed download109072
    server IP 142.132.248.53
    * all occurrences of the string "http://" have been changed to "htt???/"