@@ -102,10 +102,9 @@ let <variablename> = expression
102102 < tr >
103103 < td > Number < / td >
104104 < td >
105- < div >
106- let x = 1 < br >
107- let y = 2 . 3 < br >
108- let z = - 442 . 33 < br >
105+ < code > let x = 1 < / code >< br >
106+ < code > let y = 2 . 3 < / code >< br >
107+ < code > let z = - 442 . 33 < / code >< br >
109108 < / div >
110109 < / td >
111110 < / tr >
@@ -118,24 +117,24 @@ let <variablename> = expression
118117 < tr >
119118 < td > Boolean < / td >
120119 < td >
121- let hasValue = true < br >
122- let allow = false < br >
120+ < code > let hasValue = true < / code > <br >
121+ < code > let allow = false < / code > <br >
123122 < / td >
124123 < / tr >
125124 < tr >
126125 < td > Date < / td >
127126 < td >
128127 Use date function to declare a variable as date type . < br >
129- let birthday = $date (y :1980 , m : 1 , d : 1 )
128+ < code > let birthday = $date (y :1980 , m : 1 , d : 1 )< / code >
130129 < / td >
131130 < / tr >
132131 < tr >
133132 < td > Object Type < / td >
134133 < td >
135134 Object type can be defined using JSON format . It does not support nested object syntax , but in order to set
136135 nested object , you can set to a variable and use it . < br >< br >
137- let address = {city : 'ny' } < br >
138- let member = {name : 'alex' , address : address }
136+ < code > let address = {city : 'ny' } < / code > <br >
137+ < code > let member = {name : 'alex' , address : address }< / code >
139138 < / td >
140139 < / tr >
141140< / table >
@@ -199,9 +198,9 @@ Function cannot be an argument to another function. Store output of a function i
199198 <td>
200199 <div>
201200 $\color{#4686f2}{\$Date(y: int, m: int, d: int, [h:int, mn: int, s: int])}$ <br>
202- let d1 = $Date(y: 2022, m: 7, d:11) <br>
203- let d2 = $Date(m: 10, d:25, y: 2022 ) <br>
204- let t1 = $Date(m: 10, d:25, y: 2022, h:13, mn:30 ) <br >
201+ <code> let d1 = $Date(y: 2022, m: 7, d:11) </code> <br>
202+ <code> let d2 = $Date(m: 10, d:25, y: 2022 ) </code> <br>
203+ <code> let t1 = $Date(m: 10, d:25, y: 2022, h:13, mn:30 ) </code >
205204 </div>
206205 </td>
207206 </tr>
@@ -223,8 +222,8 @@ Function cannot be an argument to another function. Store output of a function i
223222 $\color{#4686f2}{\$GetCurrentDateTime(timeZone: "")}$ <br>
224223 <a href="https://docs.microsoft.com/en-us/windows-hardware/manufacture/desktop/default-time-zones?view=windows-11#time-zones">Windows Timezones List</a><br>
225224 <a href="https://manpages.ubuntu.com/manpages/bionic/man3/DateTime::TimeZone::Catalog.3pm.html">Ubuntu Timezones List</a><br>
226- let today = $GetCurrentDateTime() <br>
227- let todayEst = $GetCurrentDateTime ( timezone: "Eastern Standard Time" )
225+ <code> let today = $GetCurrentDateTime() </code> <br>
226+ <code> let todayEst = $GetCurrentDateTime ( timezone: "Eastern Standard Time" )</code>
228227 </td>
229228 </tr>
230229 <tr>
@@ -279,7 +278,7 @@ Function cannot be an argument to another function. Store output of a function i
279278 <td>Concat</td>
280279 <td>
281280 $\color{#4686f2}{\$Concat(value1: string, value2:string, value3:string, value4:string, value5:string)}$ <br>
282- let value = $Concat ( value1: "I ", value2: "got it" )
281+ <code> let value = $Concat ( value1: "I ", value2: "got it" )</code>
283282 </td>
284283 </tr>
285284</table >
0 commit comments