??????????????????JavaScript??????
?????Shelley ???????[ 2017/3/28 11:37:21 ] ????????Javascript ??????
????????14:??????????????
????var bar = true;
????console.log(bar + 0);
????console.log(bar + "xyz");
????console.log(bar + true);
????console.log(bar + false);
?????????
????1
????truexyz
????2
????1
???????????????????????
????Number + Number -> ???
????Boolean + Number -> ???
????Boolean + Boolean -> ???
????Number + String -> ????
????String + Boolean -> ????
????String + String -> ????
????????15:??????????????
????var z = 1?? y = z = typeof y;
????console.log(y);
????????? undefined??js?и???????????????????? ??????????????????????????????
???????????????
????var z = 1
????z = typeof y;
????var y = z;
????console.log(y);
????????16:??????????????
????var foo = function bar(){ return 12; };
????typeof bar();
????????????????bar is not defined???????????????????У??????????????
????var bar = function(){ return 12; };
????typeof bar();
??????????
????function bar(){ return 12; };
????typeof bar();
???????????????????
????var foo = function bar(){
????// foo is visible here
????// bar is visible here
????console.log(typeof bar()); // Work here : )
????};
????// foo is visible here
????// bar is undefined here
????????17:???????????????????
????var foo = function(){
????// Some code
????};
????function bar(){
????// Some code
????};
????foo??????????????????????????????????????????????????????
????????????????????′??????????
????console.log(foo)
????console.log(bar)
????var foo = function(){
????// Some code
????};
????function bar(){
????// Some code
????};
????????
????undefined
????function bar(){
????// Some code
????};
????????????? foo ????????? undefined???? bar???????????????
????JavaScript????????????????????
???????????????JavaScript ???????????????????????С?
????// foo bar?????λ???????
????function bar(){
????// Some code
????};
????var foo;
????console.log(foo)
????console.log(bar)
????foo = function(){
????// Some code
????};
???????????????????????
????????18:??????????????
????var salary = "1000$";
????(function () {
????console.log("Original salary was " + salary);
????var salary = "5000$";
????console.log("My New Salary " + salary);
????})();
?????????
????Original salary was undefined
????My New Salary 5000$
???????????????????????????????????′???
????var salary = "1000$";
????(function () {
????var salary ;
????console.log("Original salary was " + salary);
????salary = "5000$";
????console.log("My New Salary " + salary);
????})();
????????19:???? instanceof ??????????????????????
????function foo(){
????return foo;
????}
????console.log(new foo() instanceof foo);
????instanceof???????????ж????????????????????
??????
????function Animal(){
????//?????дreturn???
????return this;
????}
????var dog = new Animal();
????dog instanceof Animal // Output : true
??????????????foo?????
????function foo(){
????return foo;
????}
????????
????// here bar is pointer to function foo(){return foo}.
????var bar = new foo();
???????? new foo() instanceof foo ???? false
????????20: ??????????JavaScript??”????????”?????????????”????????”??????
????var counterArray = {
????A : 3??
????B : 4
????};
????counterArray["C"] = 1;
????????????????????key?????????????
????Object.keys(counterArray).length // Output 3
??????????ο???: 21 Essential JavaScript Interview Questions | Codementor
??????????????????????????????е?????????????棬?????????
???????????????????????漰???????????????????SPASVOС??(021-61079698-8054)?????????????????????????
??????
JavaScript????????????JavaScript???????????????????????????Prepack?JavaScript???????????2017???????JavaScript??????????JavaScript??????????????????Node.js?п?JavaScript??????JavaScript ??????β??????????????????JavaScript?????????????JavaScript???????????this???????????????????????JavaScript????????????JavaScript??Java??PHP????????д???????????Node?????????JavaScript????JavaScript ????????vs????vs???????Javascript??????????С?????????????????JavaScript???????????????д??????JavaScript????
???·???
??????????????????
2023/3/23 14:23:39???д?ò??????????
2023/3/22 16:17:39????????????????????Щ??
2022/6/14 16:14:27??????????????????????????
2021/10/18 15:37:44???????????????
2021/9/17 15:19:29???·???????·
2021/9/14 15:42:25?????????????
2021/5/28 17:25:47??????APP??????????
2021/5/8 17:01:11????????
?????????App Bug???????????????????????Jmeter?????????QC??????APP????????????????app?????е????????jenkins+testng+ant+webdriver??????????????JMeter????HTTP???????Selenium 2.0 WebDriver ??????