【单选题】
如果初始化变量时没用var声明则该变量会被添加到(),函数可以使用:___
A. : 全局环境
B. : 函数内
C. : 临近环境
D. : 局部环境
查看试卷,进入试卷练习
微信扫一扫,开始刷题

答案
A
解析
暂无解析
相关试题
【单选题】
(网站工程)假设box是获取到的dom对象,以下没有语法错误的语句是?___
A. : box.width = "30px"
B. : box.style.background-image = "img/bg.jpg"
C. : box.style.color = #00f
D. : box.style.marginLeft = "5px"
【单选题】
(专基_Js)以下哪个方法是字符串位置方法的为( )。___
A. : substr()
B. : toLowerCase()
C. : toUpperCase()
D. : indexOf
【单选题】
()方法返回一个字符串,该字符串中的所有字母都被转换为大写字母:___
A. : toLowerCase
B. : ?toLocaleUpperCase
C. : toLocaleLowerCase
D. : toUpperCase
【多选题】
(专基_Js)变量的命名规范有( )。___
A. : 只能以字母下划线或$符开头
B. : 变量名不区分大小写
C. : 不能以数字你开头
D. : 可以使用关键字保留字命名
【多选题】
(专基_Js)已知变量v,以下检测其数据类型用法`正确的有( )___
A. : typeof v
B. : typeof(v)
C. : typeof[v]
D. : typeof{v}
【多选题】
(专基_Js)以下对NaN的理解`正确的有( )___
A. : NaN 是一种特殊的数值
B. : NaN不等于任何一个数,包括它本身
C. : NaN表示非数值
D. : 任何涉及与NaN的操作都返回NaN
【多选题】
(专基_Js)以下变量的赋值,写法`正确的是( )___
A. : password=123mypwd
B. : var email,name="marry"
C. : phone="13333333908"
D. : code="my123"
【多选题】
(专基_Js)以下能转字符串的方法`正确的有( )___
A. : 变量.toString()
B. : String( 变量 )
C. : ""+ 变量
D. : toString(变量)
【多选题】
(专基_Js)以下能将其他类型的数据转字符串的方法`正确的有( )。___
A. : 变量.toString()
B. : String( 变量 )
C. : ""+ 变量
D. : toString(变量)
【多选题】
(专基_Js)以下语句没有语法错误的有哪些?(请注意标点符号)( )。___
A. : var a="hello",a+=" world"
B. : if(isNaN("name55")){console.log("ok")}
C. : if(isNaN("name55")==true){console.log("ok")}
D. : var level="";if(!level)console.log("需要有分级")
【多选题】
(专基_Js)以下哪些方法返回的结果是boolean型或者转换boolean型的( )。___
A. : if()
B. : typeof()
C. : isNaN()
D. : parseInt()
【多选题】
(专基_Js)以下可以弹出执行的语句有( )。___
A. : var a = 1; if(a===1){alert("执行")}
B. : var a = 1; if(a==1) alert("执行")
C. : var a = 1; if(a===1)else alert("执行")
D. : var a = 1; if(a==1){alert("执行")}
【多选题】
(专基_Js)以下循环是死循环的有哪些( )。___
A. : for(var i=10;i>0;i++){}
B. : for(var i=1;i<=10;i--){}
C. : for(var i=50;i>=0;i-=5){}
D. : for(var i=5;i<=30;i+=2){}
【多选题】
(专基_Js)var browser = "IE"使用switch对browser的判断,语法错误的有?___
A. : switch(browser){case="IE";console.log("IE浏览器");break;}
B. : switch(browser=="IE"){case :console.log("IE浏览器");break;}
C. : switch(browser){case "IE":console.log("IE浏览器");break;}
D. : switch(browser){case "IE";console.log("IE浏览器");break;}
【多选题】
(专基_Js)使用while循环打印0-100之间的所有偶数var i = 0;while(i<=100){console.log(i);________}横线处的代码可以是___
A. : i- -
B. : i+=2
C. : i++
D. : i=i+2
【多选题】
(专基_Js)下列方法中哪些是用于取整的方法( )。___
A. : Math.ceil()
B. : Math.floor()
C. : Math.random()
D. : Math.round()
【多选题】
(专基_Js)以下关于Math对象方法计算结果不`正确的有( )。___
A. : Math.ceil(3.55)==>3
B. : Math.floor(3.55)==>3
C. : Math.ceil(3.55)==>4
D. : Math.floor(3.55)==>4
【多选题】
(专基_Js)以下关于Math对象描述错误的有( )。___
A. : Math.ceil()是随机获取数值的方法
B. : Math.floor()是向下取整
C. : Math.round()是向上取整
D. : Math.pow()是取绝对值
【多选题】
(专基_Js)以下结果不`正确的有( )。___
A. : Math.ceil(3.55)==>3
B. : Math.floor(3.55)==>3
C. : Math.ceil(3.55)==>4
D. : Math.floor(3.55)==>4
【多选题】
(专基_Js)以下关于数学对象描述错误的有( )。___
A. : Math.ceil()是随机获取数值的方法
B. : Math.floor()是向下取整
C. : Math.round()是向上取整
D. : Math.pow()是取绝对值
【多选题】
(专基_Js)已知字符串str = "hello 1609C";若要获取最后一个字符"C",以下获取方式`正确的有( )。___
A. : str[10]
B. : str.charAt(10)
C. : str[str.length-1]
D. : str.charAt(str.length-1)
【多选题】
var str = "helloworld";针对str,以下操作能够返回wor的有?___
A. : str.substr(5,3)
B. : str.substring(5,8)
C. : str.substring(5,7)
D. : str.slice(5,7)
【多选题】
(专基_Js)检测字符串中字符位置的有?___
A. : indexOf()
B. : lastIndex()
C. : lastIndexOf()
D. : index()
【多选题】
(专基_Js)以下是字符串转大小写的方法有( )。___
A. : toUpperCase()
B. : toLowerCase()
C. : toUpper()
D. : toLower()
【多选题】
(专基_Js)JS字符串方法中基于子字符串创建新字符串的三个方法分别为___
A. : slice()
B. : substring()
C. : substr()
D. : split()
推荐试题
【单选题】
Both the kids and their parents ____ English, I think. I know it from their accent.
A. is
B. been
C. are
D. was
【单选题】
He opened the letter and it contained ___.
A. an important information
B. some important informations
C. many important information
D. some important information
【单选题】
He has been writing for 3 years, but being a writer is not his ___.
A. chance
B. choice
C. change
D. character
【单选题】
They have never heard any ___.
A. a customer complaint
B. the customer's complaints
C. customer's complaint
D. the customers' complaints
【单选题】
The retired man is used to ___ his two dogs early in the morning.
A. exercise
B. exercising
C. exercised
D. exercises
【单选题】
It was not ___ midnight that they discovered the children were not in their bedroom.
A. before
B. at
C. after
D. until
【单选题】
Young ___ he is, he knows how to get along with others.
A. like
B. as
C. although
D. however
【单选题】
He succeeded ___ out a lot of things entirely new in the world.
A. in working
B. to work
C. working
D. at working
【单选题】
It took me a long time to ___ the disappointment of failing the exam.
A. get over
B. get up
C. get into
D. get down
【单选题】
She ___ 100 pages of the book today.
A. has already read
B. already reads
C. already read
D. was already read
【单选题】
He has been ___ for nearly three weeks after the death of his dear pet.
A. sad
B. satisfied
C. evil
D. joyful
【单选题】
One cannot learn a foreign language well ___he studies hard.
A. unless
B. if
C. as
D. when
【单选题】
A large number of people___ present at the meeting, which was out of our expectation.
A. was
B. were
C. have
D. has
【单选题】
When the girls saw the funny man, they couldn't ___ laughing.
A. keep from
B. keep on
C. keep away
D. keep at
【单选题】
We are glad that we finally managed to get into contact ___ them.
A. at
B. on
C. from
D. with
【单选题】
This kind of plant___a lot of water at all times.
A. assumes
B. limits
C. produces
D. requires
【单选题】
Uncle Sam sent him a___ bicycle as a birthday present.
A. red sports new
B. sports new red
C. new sports red
D. new red sports
【单选题】
I couldn't find my English-Chinese dictionary___.
A. anywhere
B. everywhere
C. nowhere
D. somewhere
【单选题】
The plane was about to___, and yet I left my ticket behind.
A. take off
B. take on
C. take up
D. take in
【单选题】
John succeeded ___ what he wanted.
A. to get
B. to getting
C. in getting
D. and getting
【单选题】
With a good command of reading skills, most students can manage to read ___as they could the year before.
A. as twice fast
B. as fast as twice
C. as twice as fast
D. twice as fast
【单选题】
Some famous singers live on the ___from their record sales.
A. salary
B. price
C. bill
D. income
【单选题】
Don't be too ___about things you're not supposed to know.
A. strange
B. amusing
C. curious
D. conscious
【单选题】
It was in 1969 ___the American astronauts succeeded in landing on the moon.
A. when
B. the moment
C. which
D. that
【单选题】
___people in the world are sending information by e-mail every day.
A. Several million
B. Many millions
C. Several millions
D. Many million
【单选题】
He___less time reading stories about film stars than before.
A. takes
B. spends
C. costs
D. pays
【单选题】
Selecting a mobile phone for personal use is no easy task because technology___so rapidly.
A. is changing
B. has been changed
C. will have changed
D. will change
【单选题】
The taxi driver always reminds passengers to ___their belongings when they leave the car.
A. keep
B. catch
C. hold
D. take
【单选题】
If the doctor had been available, the child _______.
A. would not die
B. could not have died
C. might not die
D. should not have died
【单选题】
If Mary___shopping this afternoon, please ask her to write a shopping list first.
A. will go
B. goes
C. went
D. has gone
【单选题】
These desks and chairs ___to the children in the mountain villages next week.
A. are sent
B. will send
C. have sent
D. will be sent
【单选题】
Every society has its own peculiar customs and ___of acting.
A. attitudes
B. behavior
C. ways
D. means