var person = {[br][/br] firstName: "Bill", lastName : "Gates", id : 648, fullName : function() { return this.firstName + " " + this.lastName; } }; 请问运行代码console.log(person.fullName())结果为______
举一反三
- 下面代码的输出是什么?() functionPerson(firstName,lastName){ this.firstName=firstName; this.lastName=lastName; } constlydia=newPerson("Lydia","Hallie"); constsarah=Person("Sarah","Smith"); console.log(lydia); console.log(sarah); A: Person{firstName:"Lydia",lastName:"Hallie"}andundefined B: Person{firstName:"Lydia",lastName:"Hallie"}andPerson{firstName:"Sarah",lastName:"Smith"} C: Person{firstName:"Lydia",lastName:"Hallie"}and{} D: Person{firstName:"Lydia",lastName:"Hallie"}andReferenceError
- 在员工管理系统中,查询表employee表中所有员工的姓名,字段:id(int),firstname(varchar),lastname(varchar),以下sql语句正确的是()。 A: Select firstname +’.’+ lastname as ‘name’ from employee B: Select firstname +’.’+ lastname from employee C: Select ‘name’= firstname +’.’+ lastname from employee D: Select firstname,lastname from employee
- 以下代码 function Person() {[br][/br] this.name = '张三';[br][/br] }[br][/br] Person.prototype.name = '李四';[br][/br] var p = new Person();[br][/br] console.log(p.name); 执行后的输出结果____。
- 通过 SQL,在表 Actor 中选择 FirstName 等于 Jim 而 LastName 等于 Carter 的所有记录的表述正确的是( )。? SELECT * FROM Actor WHERE FirstName LIKE 'Jim' AND LastName LIKE 'Carter'|SELECT * FROM Actor WHERE FirstName='Jim' OR LastName='Carter'|SELECT FirstName='Jim', LastName='Carter' FROM Actor|SELECT * FROM Actor WHERE FirstName='Jim' AND LastName='Carter'
- 通过 SQL,在表 Actor 中选择 FirstName 等于 Jim 而 LastName 等于 Carter 的所有记录的表述正确的是( )。 A: SELECT * FROM Actor WHERE FirstName LIKE 'Jim' AND LastName LIKE 'Carter' B: SELECT FirstName='Jim', LastName='Carter' FROM Actor C: SELECT * FROM Actor WHERE FirstName='Jim' AND LastName='Carter' D: SELECT * FROM Actor WHERE FirstName='Jim' OR LastName='Carter'