Skip to content

Instantly share code, notes, and snippets.

@parzibyte
Created April 26, 2020 12:23
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save parzibyte/d2a68fe6bb874f055a2cf7f5eaafb2f3 to your computer and use it in GitHub Desktop.
Save parzibyte/d2a68fe6bb874f055a2cf7f5eaafb2f3 to your computer and use it in GitHub Desktop.
<html>
<head>
<title>PHP Test</title>
</head>
<body>
<script type="text/javascript">
const miVariableEnJavaScript = "Parzibyte";
// Justo aquí estamos pasando la variable ----^
// Y ya la tenemos desde JavaScript. Podemos hacer cualquier cosa con ella
console.log("El contenido de la variable es: " + miVariableEnJavaScript)
</script>
</body>
</html>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment