Example Analysis of basic Syntax and data types in JavaScript
This article mainly introduces the basic syntax and data type example analysis in JavaScript, which has certain reference value. Interested friends can refer to it. I hope you will gain a lot after reading this article. Let Xiaobian take you to understand it together.
Introduction of JavaScript1. Internal Tags alert("hello world");2. Externally introduced base syntax
define variables
var num = 1; alert(num);
condition control
if (2>1){ alert("true");} var score = 65; // alert(num); if (score>60&&score70&&score