Skip to content

Commit acd9aaf

Browse files
authored
Flip Node.js version tabs
1 parent fae32a2 commit acd9aaf

File tree

1 file changed

+16
-15
lines changed

1 file changed

+16
-15
lines changed

articles/azure-functions/functions-develop-vs-code.md

Lines changed: 16 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ ms.custom:
1111
- devx-track-js
1212
- devx-track-python
1313
- ignite-2023
14-
ms.date: 11/14/2023
14+
ms.date: 03/06/2024
1515
zone_pivot_groups: programming-languages-set-functions
1616
#Customer intent: As an Azure Functions developer, I want to understand how Visual Studio Code supports Azure Functions so that I can more efficiently create, publish, and maintain my Functions projects.
1717
---
@@ -158,6 +158,13 @@ An HttpExample.cs class library file, the contents of which vary depending on wh
158158
::: zone-end
159159
::: zone pivot="programming-language-javascript,programming-language-typescript"
160160
Files generated depend on the chosen Node.js programming model for Functions:
161+
162+
### [v4](#tab/node-v4)
163+
164+
+ A package.json file in the root folder.
165+
166+
+ A named .js file in the _src\functions_ folder, which contains both the function definition and your function code.
167+
161168
### [v3](#tab/node-v3)
162169
+ A package.json file in the root folder.
163170

@@ -166,12 +173,6 @@ Files generated depend on the chosen Node.js programming model for Functions:
166173
+ The [function.json definition file](functions-reference-node.md#folder-structure)
167174
+ An [index.js file](functions-reference-node.md#exporting-a-function), which contains the function code.
168175

169-
### [v4](#tab/node-v4)
170-
171-
+ A package.json file in the root folder.
172-
173-
+ A named .js file in the _src\functions_ folder, which contains both the function definition and your function code.
174-
175176
---
176177

177178
::: zone-end
@@ -223,16 +224,16 @@ The results of this action are that a new Java (.java) file is added to your pro
223224
::: zone pivot="programming-language-javascript,programming-language-typescript"
224225
The results of this action depend on the Node.js model version.
225226

226-
### [v3](#tab/node-v3)
227-
228-
A new folder is created in the project. The folder contains a new function.json file and the new JavaScript code file.
229-
230227
### [v4](#tab/node-v4)
231228

232229
+ A package.json file in the root folder.
233230

234231
+ A named .js file in the _src\functions_ folder, which contains both the function definition and your function code.
235232

233+
### [v3](#tab/node-v3)
234+
235+
A new folder is created in the project. The folder contains a new function.json file and the new JavaScript code file.
236+
236237
---
237238
::: zone-end
238239
::: zone pivot="programming-language-powershell"
@@ -276,14 +277,14 @@ For example, to add an output binding that writes data to a storage queue you up
276277
::: zone pivot="programming-language-javascript"
277278
For example, the way you define the output binding that writes data to a storage queue depends on your Node.js model version:
278279

279-
### [v3](#tab/node-v3)
280-
281-
[!INCLUDE [functions-add-output-binding-vs-code](../../includes/functions-add-output-binding-vs-code.md)]
282-
283280
### [v4](#tab/node-v4)
284281

285282
Using the Node.js v4 model, you must manually add a `return:` option in the function definition using the `storageQueue` function on the `output` object, which defines the storage queue to write the `return` output. Output is written when the function completes.
286283

284+
### [v3](#tab/node-v3)
285+
286+
[!INCLUDE [functions-add-output-binding-vs-code](../../includes/functions-add-output-binding-vs-code.md)]
287+
287288
---
288289

289290
::: zone-end

0 commit comments

Comments
 (0)