什么是Javascript中最新添加的运算符? [英] What are the newest operators added to Javascript?

查看:57
本文介绍了什么是Javascript中最新添加的运算符?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想知道最近在Javascript中添加了哪些运算符.

I would like to know which operators were added to Javascript most recently.

这包括可能尚未完全通过标准流程来在所有浏览器中实现的所有运算符,如果或多或少可以肯定的话.

This includes any operators which might not have got all the way through the standards process to being implemented in all browsers, if it's more or less certain they will be.

如果最近没有添加任何新的运算符,那么我仍然想知道最近几家新的运算符确实加入了.

If no new operators have been added very recently then I'd still like to know how long ago the last couple of new ones did make it in.

自从半小时前首次提出这个问题以来,我已经了解到JavaScript的某些语法功能通常被称为运算符",但从技术上讲可能不符合运算符的条件.有鉴于此,我希望这个问题涵盖术语的广泛含义.

Since first asking this question half an hour ago, I've already learned that there are syntactic features of JavaScript that are commonly referred to as "operators" but that may not technically qualify as operators. In light of this I'd like this question to cover the broad sense of the term.

推荐答案

将ES6作为最新标准,最新的" 运算符是严格的相等和不相等运算符(===!==)是ES3引入的.该标准的后来修订版增加了新的语法,但没有一个带来新的运算符.

Considering ES6 as the latest standard, the "newest" operators are the strict equality and non-equality operators (===, !==) that were introduced with ES3. Later revisions of the standard added new syntax, but none of them did bring new operators.

这篇关于什么是Javascript中最新添加的运算符?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆