From ca2609e73bf99209b4db825336bd82a1ef356496 Mon Sep 17 00:00:00 2001 From: sujeet kumar <73944425+sujeet-jaiswal@users.noreply.github.com> Date: Tue, 14 Jan 2025 00:45:29 +0530 Subject: [PATCH] Update javascript.md with code --- .../markdown/image/tensorflowjs/javascript.md | 49 ++++++++++++++++++- 1 file changed, 48 insertions(+), 1 deletion(-) diff --git a/snippets/markdown/image/tensorflowjs/javascript.md b/snippets/markdown/image/tensorflowjs/javascript.md index ad737bc..bc1b9c4 100644 --- a/snippets/markdown/image/tensorflowjs/javascript.md +++ b/snippets/markdown/image/tensorflowjs/javascript.md @@ -1,5 +1,52 @@ Learn more about how to use the code snippet on [github](https://github.com/googlecreativelab/teachablemachine-community/tree/master/libraries/image). +The issue lies in how the URL variable is being used in your JavaScript code. Specifically, URL is a reserved global object in JavaScript, and redefining it causes unintended behavior. When you assign a string to URL, it conflicts with the native URL object, leading to the broken behavior you observed. + ```html