Is float a JavaScript keyword?

WBOY
Release: 2022-07-01 16:27:28
Original
2110 people have browsed it

float is a reserved keyword of JavaScript; reserved words cannot be used as variables, labels or function names. Some reserved words are used as JavaScript extensions in the future, and the float() function can parse a string by setting the float reserved word. , and returns a floating point number.

Is float a JavaScript keyword?

The operating environment of this tutorial: Windows 10 system, JavaScript version 1.8.5, Dell G3 computer.

Is float a JavaScript keyword?

float is a reserved keyword in JavaScript

Reserved keywords in Javascript cannot be used as variables or labels or function name. Some reserved keywords are used by Javascript for future extensions.

float:Float() function can parse a string and return a floating point number

The reserved words are as follows:

Is float a JavaScript keyword?

are represented as follows:

Reserved words do not have any specific purpose, but they are likely to be used as keywords in the future, so reserved words generally cannot be used as identifiers.

abstract: abstract (abstract) modifier, which can modify classes and methods

boolean:Object is used to convert non-Boolean values ​​to Boolean Value

byte: byte

char: Definition of character variable

class: Definition "Class"

const: Declare a read-only constant. Once declared, the value of the constant cannot be changed

debugger:debugger statement is used Stops execution of JavaScript and calls (if available) debugging functions.

double:(double precision floating point type

enum: enumeration

export: You can export a module, which can be a variable or method

extends: Used to create a subclass of an ordinary class or a built-in object.

final: Keywords used for modification

float:Float() function can parse a string and return a floating point number

goto: Unconditional transfer statement

implements: Method that implements the corresponding interface

import: Used to import a binding exported by another module

int: It is a function that rounds a value down to the nearest integer

interface: It is the key to interface operations in object-oriented programming languages. Word, the function is to combine the required members to encapsulate a set of certain functions

long: Represents a long integer data, which is a basic data in programming languages Type, the abbreviation of long int, the default is signed long

native: It is a way to escape the native objects of the mobile operating system

package: The Packages attribute is the root of all packages known to the Java interpreter

private: Internal variable private; @private tag marks identifier as private

protected: Create utility function

public: Global variable

short: Short integer

## The variables of

#static:static are called static variables or class variables

super:super() function is a method used to call the parent class (super class)

synchronized: Instance object lock

throws: Throwing exceptions to the caller allows the program to continue executing

transient: A mechanism for persisting object instances

volatile: .volatile is used as an instruction keyword to ensure that this instruction will not be optimized by the compiler And omit it, and require direct reading of the value each time

[Related recommendations:

javascript video tutorial, web front-end]

The above is the detailed content of Is float a JavaScript keyword?. For more information, please follow other related articles on the PHP Chinese website!

Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template