Tag: variable
-
Look into bash builtin command named typeset
$typeset -n gree=55 bash: typeset: 55′: invalid variable name for name reference $typeset -n 55=gree bash: typeset:55=gree’: not a valid identifier$typeset -n gree=pwd$echo $gree $echo $pwd $typeset -n vary=$?bash: typeset: `0′: invalid variable name for name reference$typeset vary=$?$echo $vary1$echo $vary1$echo $?0$echo $vary1$echo varyvary$echo $vary1$echo $vary1$echo $?0$typeset vary=$?$echo $vary0$ $typeset hello $echo $hello $echo $? 0 […]
-
string and integer variable operation using Javascript
<!DOCTYPE html> <html lang=”en”> <head> <title>Chapter 2, Example 1</title> </head> <body> <script> var myFirstVariable; myFirstVariable = “Hello”; alert(myFirstVariable); myFirstVariable = 54321; alert(myFirstVariable); </script> </body> </html> Key source : Beginning JavaScript, 5th Edition (wrox)