google / google/closure-compiler

Standard scriptlets, jo <? ... ?> syntax ka upyog

Open
#4,205 1 comment 0 reactions 0 assignees View on GitHub
Dominant language
JavaScript
Stars
7.7k
Forks
1.2k
Avg merge
2d 12h
Merged PRs (30d)
6

Description

Standard scriptlets, jo syntax ka upyog karte hain, code ko execute karte hain jiske liye explicit output nahi hota hai. Lekin, jaise ki is udaaharan mein dikhaaya gaya hai, scriptlet ke andar code ke parinaam bhi HTML code content ko prabhavit kar sakte hain.

Yeh hain kuchh tarah ke code jo aap scriptlet mein upyog kar sakte hain:

*Variable Assignment*

```


Hello, !


```

*Control Structures*

```


= 18) { ?>

You are an adult!



You are a minor!



```

*Function Calls*

```



```

*Object Manipulation*

```
"John Doe", "age" => 25);
?>



Age:


Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.