360 front-end interview questions

  1. Which of the following statements about forms are correct:
  • The placeholder attribute can be used to prompt the user what to enter
  • The user cannot directly modify the content of the text box containing the disabled attribute
  • The maxlength attribute can limit the maximum number of characters entered in the text box
  • The multiple attribute of input specifies that the input field can select multiple values.
  1. The space complexity of the algorithm is O(1). There are simple selection sorting and heap sorting
  2. Both Canvas and SVG can be drawn using JavaScript
  3. The type of css style file does not include style sheets, including internal style sheets, inline style sheets, and external style sheets
  4. The correct statement about merge sorting is
  • Merge sort uses the idea of ​​divide and conquer strategy
  • Merge sort is stable
  1. When the sender and receiver of IP datagrams deliver across the network, the sender needs to use the ARP protocol to obtain the MAC address of the receiver’s IP address
  2. What are the characteristics of problems suitable for dynamic programming algorithms:
  • Satisfy the principle of optimization
  • The problem to be solved has overlapping sub-problems
  1. What is the result after the following code is executed?
let x =10;
let foo=() =>{
    
    
	console.log(x);
	let x=20;
	x++;
}
foo();

The result is: RefenceError is thrown

Self-motivation

Be bold, anyway, there is only one life, there is no time to say, I can’t, I can’t, I’m afraid. Instead of doing this, it's better to do your best to do what you like.

Guess you like

Origin blog.csdn.net/weixin_50001396/article/details/114000037